1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Handle main window hide

This commit is contained in:
Chad Scharf
2020-10-29 16:35:09 -04:00
parent be95ee9328
commit d8d1ee3022
8 changed files with 33 additions and 13 deletions

View File

@@ -149,6 +149,9 @@ export class Main {
event.preventDefault();
this.processDeepLink([url]);
});
// Handle visibility event(s)
this.windowMain.win.on('hide', () => this.messagingService.send('hideMain'));
}, (e: any) => {
// tslint:disable-next-line
console.error(e);