From 36bda45c2e6b5c147187cd348e016e19255e9b9f Mon Sep 17 00:00:00 2001 From: Hinton Date: Mon, 14 Dec 2020 10:20:41 +0100 Subject: [PATCH] Add SFSafariAppExtensionBundleIdentifiersToReplace --- src/background/runtime.background.ts | 5 ++--- src/safari/safari/Info.plist | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index 8861dd60f0..2ab3185df4 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -40,16 +40,15 @@ export default class RuntimeBackground { private systemService: SystemService, private vaultTimeoutService: VaultTimeoutService, private environmentService: EnvironmentService, private policyService: PolicyService, private userService: UserService) { - this.runtime = chrome.runtime; // onInstalled listener must be wired up before anything else, so we do it in the ctor - this.runtime.onInstalled.addListener((details: any) => { + chrome.runtime.onInstalled.addListener((details: any) => { this.onInstalledReason = details.reason; }); } async init() { - if (!this.runtime) { + if (!chrome.runtime) { return; } diff --git a/src/safari/safari/Info.plist b/src/safari/safari/Info.plist index eaec1ff8e0..366d5780aa 100644 --- a/src/safari/safari/Info.plist +++ b/src/safari/safari/Info.plist @@ -2,6 +2,8 @@ + SFSafariAppExtensionBundleIdentifiersToReplace + com.bitwarden.desktop.safari CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName