From 75f84f6723cfea7ae5f880daa5288151b6d68a0a Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 15 Mar 2021 15:44:10 +0100 Subject: [PATCH] Resolve FF < 77 not working (#1706) --- src/background/nativeMessaging.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/nativeMessaging.background.ts b/src/background/nativeMessaging.background.ts index 7a3cea9af0e..26020d400de 100644 --- a/src/background/nativeMessaging.background.ts +++ b/src/background/nativeMessaging.background.ts @@ -36,7 +36,7 @@ export class NativeMessagingBackground { private messagingService: MessagingService, private appIdService: AppIdService) { this.storageService.save(ConstantsService.biometricFingerprintValidated, false); - if (BrowserApi.isChromeApi) { + if (chrome?.permissions?.onAdded) { // Reload extension to activate nativeMessaging chrome.permissions.onAdded.addListener(permissions => { BrowserApi.reloadExtension(null);