mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[Bug] Update lock to be default timeout action (#459)
* Update jslib2de8c5e->212a2e3* Updated conditionals to make lock the default state
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 2858724f44...212a2e3745
@@ -23,8 +23,8 @@ export class PowerMonitorMain {
|
|||||||
powerMonitor.on('suspend', async () => {
|
powerMonitor.on('suspend', async () => {
|
||||||
const options = await this.getVaultTimeoutOptions();
|
const options = await this.getVaultTimeoutOptions();
|
||||||
if (options[0] === -3) {
|
if (options[0] === -3) {
|
||||||
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
|
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
|
||||||
this.main.messagingService.send('logout', { expired: false });
|
this.main.messagingService.send('lockVault');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -34,8 +34,8 @@ export class PowerMonitorMain {
|
|||||||
powerMonitor.on('lock-screen', async () => {
|
powerMonitor.on('lock-screen', async () => {
|
||||||
const options = await this.getVaultTimeoutOptions();
|
const options = await this.getVaultTimeoutOptions();
|
||||||
if (options[0] === -2) {
|
if (options[0] === -2) {
|
||||||
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
|
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
|
||||||
this.main.messagingService.send('logout', { expired: false });
|
this.main.messagingService.send('lockVault');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -51,8 +51,8 @@ export class PowerMonitorMain {
|
|||||||
|
|
||||||
const options = await this.getVaultTimeoutOptions();
|
const options = await this.getVaultTimeoutOptions();
|
||||||
if (options[0] === -4) {
|
if (options[0] === -4) {
|
||||||
options[1] === 'lock' ? this.main.messagingService.send('lockVault') :
|
options[1] === 'logOut' ? this.main.messagingService.send('logout', { expired: false }) :
|
||||||
this.main.messagingService.send('logout', { expired: false });
|
this.main.messagingService.send('lockVault');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user