mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
Update jslib
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 92a65b7b36...448856cc22
@@ -171,7 +171,7 @@ export default class MainBackground {
|
|||||||
this.stateMigrationService = new StateMigrationService(
|
this.stateMigrationService = new StateMigrationService(
|
||||||
this.storageService,
|
this.storageService,
|
||||||
this.secureStorageService,
|
this.secureStorageService,
|
||||||
new GlobalStateFactory(GlobalState)
|
new StateFactory(GlobalState, Account)
|
||||||
);
|
);
|
||||||
this.stateService = new StateService(
|
this.stateService = new StateService(
|
||||||
this.storageService,
|
this.storageService,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||||
import { StorageOptions } from "jslib-common/models/domain/storageOptions";
|
import { StorageOptions } from "jslib-common/models/domain/storageOptions";
|
||||||
import { StateService as BaseStateService } from "jslib-common/services/state.service";
|
import { StateService as BaseStateService } from "jslib-common/services/state.service";
|
||||||
|
|
||||||
@@ -7,7 +8,10 @@ import { BrowserGroupingsComponentState } from "../models/browserGroupingsCompon
|
|||||||
import { BrowserSendComponentState } from "../models/browserSendComponentState";
|
import { BrowserSendComponentState } from "../models/browserSendComponentState";
|
||||||
import { StateService as StateServiceAbstraction } from "./abstractions/state.service";
|
import { StateService as StateServiceAbstraction } from "./abstractions/state.service";
|
||||||
|
|
||||||
export class StateService extends BaseStateService<Account> implements StateServiceAbstraction {
|
export class StateService
|
||||||
|
extends BaseStateService<GlobalState, Account>
|
||||||
|
implements StateServiceAbstraction
|
||||||
|
{
|
||||||
async addAccount(account: Account) {
|
async addAccount(account: Account) {
|
||||||
// Apply browser overrides to default account values
|
// Apply browser overrides to default account values
|
||||||
account = new Account(account);
|
account = new Account(account);
|
||||||
|
|||||||
Reference in New Issue
Block a user