mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
Resolve safari not working due to missing chrome api (nativeMessaging) (#1585)
This commit is contained in:
@@ -36,11 +36,13 @@ export class NativeMessagingBackground {
|
|||||||
private messagingService: MessagingService, private appIdService: AppIdService) {
|
private messagingService: MessagingService, private appIdService: AppIdService) {
|
||||||
this.storageService.save(ConstantsService.biometricFingerprintValidated, false);
|
this.storageService.save(ConstantsService.biometricFingerprintValidated, false);
|
||||||
|
|
||||||
|
if (BrowserApi.isChromeApi) {
|
||||||
// Reload extension to activate nativeMessaging
|
// Reload extension to activate nativeMessaging
|
||||||
chrome.permissions.onAdded.addListener((permissions) => {
|
chrome.permissions.onAdded.addListener((permissions) => {
|
||||||
BrowserApi.reloadExtension(null);
|
BrowserApi.reloadExtension(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async connect() {
|
async connect() {
|
||||||
this.appId = await this.appIdService.getAppId();
|
this.appId = await this.appIdService.getAppId();
|
||||||
|
|||||||
Reference in New Issue
Block a user