1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

Add settings toggle to enable/disable browser integration

This commit is contained in:
Hinton
2020-10-07 15:11:01 +02:00
parent 19edc24b0b
commit 45302e5bd5
7 changed files with 107 additions and 21 deletions

View File

@@ -44,6 +44,14 @@ export class MessagingMain {
case 'hideToTray':
this.main.trayMain.hideToTray();
break;
case 'enableBrowserIntegration':
this.main.nativeMessagingService.generateManifests();
this.main.nativeMessagingService.listen();
break;
case 'disableBrowserIntegration':
this.main.nativeMessagingService.removeManifests();
this.main.nativeMessagingService.stop();
break;
default:
break;
}