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

[Bug] Update lock to be default timeout action (#459)

* Update jslib 2de8c5e -> 212a2e3

* Updated conditionals to make lock the default state
This commit is contained in:
Vincent Salucci
2020-05-28 15:21:21 -05:00
committed by GitHub
parent dfccb9bc79
commit aa3a6044a2
2 changed files with 7 additions and 7 deletions

2
jslib

Submodule jslib updated: 2858724f44...212a2e3745

View File

@@ -23,8 +23,8 @@ export class PowerMonitorMain {
powerMonitor.on('suspend', async () => {
const options = await this.getVaultTimeoutOptions();
if (options[0] === -3) {
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
this.main.messagingService.send('logout', { expired: false });
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
this.main.messagingService.send('lockVault');
}
});
}
@@ -34,8 +34,8 @@ export class PowerMonitorMain {
powerMonitor.on('lock-screen', async () => {
const options = await this.getVaultTimeoutOptions();
if (options[0] === -2) {
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
this.main.messagingService.send('logout', { expired: false });
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
this.main.messagingService.send('lockVault');
}
});
}
@@ -51,8 +51,8 @@ export class PowerMonitorMain {
const options = await this.getVaultTimeoutOptions();
if (options[0] === -4) {
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
this.main.messagingService.send('logout', { expired: false });
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
this.main.messagingService.send('lockVault');
}
}