1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

[bug(Account Switching)] Allow for never lock for dev setups (#1345)

* [bug(Account Switching)] Allow for never lock for dev setups

* [chore] Remove unecassary import

* [style] Ran prettier

* [chore] Update jslib
This commit is contained in:
Addison Beck 2021-12-28 10:47:41 -05:00 committed by GitHub
parent 55ecc4b804
commit 8a9b992757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 3d7b427b0ea7d6b75cc1eebb7a7595314f564503 Subproject commit d68c1dafaf0528f5323dd595773b0fa122403d0d

View File

@ -126,7 +126,12 @@ export function initFactory(
deps: ["WINDOW"], deps: ["WINDOW"],
}, },
{ provide: StorageServiceAbstraction, useClass: HtmlStorageService }, { provide: StorageServiceAbstraction, useClass: HtmlStorageService },
{ provide: "SECURE_STORAGE", useClass: MemoryStorageService }, {
provide: "SECURE_STORAGE",
// TODO: platformUtilsService.isDev has a helper for this, but using that service here results in a circular dependency.
// We have a tech debt item in the backlog to break up platformUtilsService, but in the meantime simply checking the environement here is less cumbersome.
useClass: process.env.NODE_ENV === "development" ? HtmlStorageService : MemoryStorageService,
},
{ {
provide: PlatformUtilsServiceAbstraction, provide: PlatformUtilsServiceAbstraction,
useFactory: ( useFactory: (