diff --git a/src/background/nativeMessaging.background.ts b/src/background/nativeMessaging.background.ts index 3ac41756e2..7c74c38db3 100644 --- a/src/background/nativeMessaging.background.ts +++ b/src/background/nativeMessaging.background.ts @@ -36,10 +36,12 @@ export class NativeMessagingBackground { private messagingService: MessagingService, private appIdService: AppIdService) { this.storageService.save(ConstantsService.biometricFingerprintValidated, false); - // Reload extension to activate nativeMessaging - chrome.permissions.onAdded.addListener((permissions) => { - BrowserApi.reloadExtension(null); - }); + if (BrowserApi.isChromeApi) { + // Reload extension to activate nativeMessaging + chrome.permissions.onAdded.addListener((permissions) => { + BrowserApi.reloadExtension(null); + }); + } } async connect() {