diff --git a/src/background/nativeMessaging.background.ts b/src/background/nativeMessaging.background.ts index 7a3cea9af0..26020d400d 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);