1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-08 09:43:42 +01:00

[chore] Update jslib (#459)

This commit is contained in:
Addison Beck 2022-01-31 18:00:19 -05:00 committed by GitHub
parent 68548d8db9
commit 3718f35efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit e372bf242b24f55c1142e33693ad2c801ab74c93
Subproject commit 92a65b7b368a8dbf55350657674c90169b04c30b

View File

@ -50,7 +50,11 @@ import { Program } from "./program";
import { SendProgram } from "./send.program";
import { VaultProgram } from "./vault.program";
import { Account, AccountFactory } from "jslib-common/models/domain/account";
import { Account } from "jslib-common/models/domain/account";
import { GlobalState } from "jslib-common/models/domain/globalState";
import { GlobalStateFactory } from "jslib-common/factories/globalStateFactory";
import { StateFactory } from "jslib-common/factories/stateFactory";
// Polyfills
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
@ -131,7 +135,8 @@ export class Main {
this.stateMigrationService = new StateMigrationService(
this.storageService,
this.secureStorageService
this.secureStorageService,
new GlobalStateFactory(GlobalState)
);
this.stateService = new StateService(
@ -139,7 +144,7 @@ export class Main {
this.secureStorageService,
this.logService,
this.stateMigrationService,
new AccountFactory(Account)
new StateFactory(GlobalState, Account)
);
this.cryptoService = new CryptoService(