Resolve FF < 77 not working (#1706)

This commit is contained in:
Oscar Hinton 2021-03-15 15:44:10 +01:00 committed by GitHub
parent 93f577b9a0
commit 75f84f6723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);