Resolve safari not working due to missing chrome api (nativeMessaging) (#1585)
This commit is contained in:
parent
c7966773a9
commit
8e20e48373
|
@ -36,11 +36,13 @@ export class NativeMessagingBackground {
|
|||
private messagingService: MessagingService, private appIdService: AppIdService) {
|
||||
this.storageService.save(ConstantsService.biometricFingerprintValidated, false);
|
||||
|
||||
if (BrowserApi.isChromeApi) {
|
||||
// Reload extension to activate nativeMessaging
|
||||
chrome.permissions.onAdded.addListener((permissions) => {
|
||||
BrowserApi.reloadExtension(null);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async connect() {
|
||||
this.appId = await this.appIdService.getAppId();
|
||||
|
|
Loading…
Reference in New Issue