mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
Update jslib (#1327)
* Update jslib * Add a null check * Reworked condition * Ran prettier
This commit is contained in:
parent
fd4c41b043
commit
881bb3cb49
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 3a1b5bf9a0fcea7f8fd46d480eb0468cc0ee77c9
|
||||
Subproject commit bcbb52e6ec007b9bafd09fab5253bd3f015e694f
|
@ -582,11 +582,14 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
|
||||
private async reloadProcess(): Promise<void> {
|
||||
const accounts = Object.keys(this.stateService.accounts.getValue());
|
||||
if (accounts.length > 0) {
|
||||
for (const userId of accounts) {
|
||||
if (!(await this.vaultTimeoutService.isLocked(userId))) {
|
||||
return;
|
||||
const accounts = this.stateService.accounts.getValue();
|
||||
if (accounts != null) {
|
||||
const keys = Object.keys(accounts);
|
||||
if (keys.length > 0) {
|
||||
for (const userId of keys) {
|
||||
if (!(await this.vaultTimeoutService.isLocked(userId))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user