1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

Reload browser extension after enabling nativeMessaging (#1577)

This commit is contained in:
Oscar Hinton
2021-01-27 23:05:50 +01:00
committed by GitHub
parent 1d79172876
commit 14293a7831
3 changed files with 27 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ export class NativeMessagingBackground {
private runtimeBackground: RuntimeBackground, private i18nService: I18nService, private userService: UserService,
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);
});
}
async connect() {