mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Disable browser integration on Mac for non MAS version (for now)
This commit is contained in:
@@ -317,9 +317,18 @@ export class SettingsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async saveBrowserIntegration() {
|
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);
|
await this.storageService.save(ElectronConstants.enableBrowserIntegration, this.enableBrowserIntegration);
|
||||||
this.messagingService.send(
|
this.messagingService.send(this.enableBrowserIntegration ? 'enableBrowserIntegration' : 'disableBrowserIntegration');
|
||||||
this.enableBrowserIntegration ? 'enableBrowserIntegration' : 'disableBrowserIntegration');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private callAnalytics(name: string, enabled: boolean) {
|
private callAnalytics(name: string, enabled: boolean) {
|
||||||
|
|||||||
@@ -1447,6 +1447,12 @@
|
|||||||
"enableBrowserIntegrationDesc": {
|
"enableBrowserIntegrationDesc": {
|
||||||
"message": "Browser integration is used for biometrics in browser."
|
"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": {
|
"approve": {
|
||||||
"message": "Approve"
|
"message": "Approve"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,7 +83,11 @@ export default class NativeMessage {
|
|||||||
chunks.push(chunk);
|
chunks.push(chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
processData();
|
try {
|
||||||
|
processData();
|
||||||
|
} catch(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user