mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[bug] Add defaults for vault timeout (#1365)
* [bug] Add state defaults for vault timeout * [chore] Update jslib
This commit is contained in:
13
src/services/state.service.ts
Normal file
13
src/services/state.service.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { StateService as BaseStateService } from "jslib-common/services/state.service";
|
||||
|
||||
import { Account } from "../models/account";
|
||||
|
||||
import { StateService as StateServiceAbstraction } from "jslib-common/abstractions/state.service";
|
||||
|
||||
export class StateService extends BaseStateService<Account> implements StateServiceAbstraction {
|
||||
async addAccount(account: Account) {
|
||||
// Apply web overides to default account values
|
||||
account = new Account(account);
|
||||
await super.addAccount(account);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user