mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Disable browser integration on Mac for non MAS version (for now)
This commit is contained in:
parent
d20aaeb0e5
commit
02a3fbde99
@ -317,9 +317,18 @@ export class SettingsComponent implements OnInit {
|
||||
}
|
||||
|
||||
async saveBrowserIntegration() {
|
||||
if (process.platform ==='darwin' && !this.platformUtilsService.isMacAppStore()) {
|
||||
await this.platformUtilsService.showDialog(
|
||||
this.i18nService.t('browserIntegrationMasOnlyDesc'),
|
||||
this.i18nService.t('browserIntegrationMasOnlyTitle'),
|
||||
this.i18nService.t('ok'), null, 'warning');
|
||||
|
||||
this.enableBrowserIntegration = false;
|
||||
return;
|
||||
}
|
||||
|
||||
await this.storageService.save(ElectronConstants.enableBrowserIntegration, this.enableBrowserIntegration);
|
||||
this.messagingService.send(
|
||||
this.enableBrowserIntegration ? 'enableBrowserIntegration' : 'disableBrowserIntegration');
|
||||
this.messagingService.send(this.enableBrowserIntegration ? 'enableBrowserIntegration' : 'disableBrowserIntegration');
|
||||
}
|
||||
|
||||
private callAnalytics(name: string, enabled: boolean) {
|
||||
|
@ -1447,6 +1447,12 @@
|
||||
"enableBrowserIntegrationDesc": {
|
||||
"message": "Browser integration is used for biometrics in browser."
|
||||
},
|
||||
"browserIntegrationMasOnlyTitle": {
|
||||
"message": "Browser integration not supported"
|
||||
},
|
||||
"browserIntegrationMasOnlyDesc": {
|
||||
"message": "Unfortunately browser integration is only supported in the Mac App Store version for now."
|
||||
},
|
||||
"approve": {
|
||||
"message": "Approve"
|
||||
},
|
||||
|
@ -83,7 +83,11 @@ export default class NativeMessage {
|
||||
chunks.push(chunk);
|
||||
}
|
||||
|
||||
processData();
|
||||
try {
|
||||
processData();
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user