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:
parent
55ecc4b804
commit
8a9b992757
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 3d7b427b0ea7d6b75cc1eebb7a7595314f564503
|
Subproject commit d68c1dafaf0528f5323dd595773b0fa122403d0d
|
@ -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: (
|
||||||
|
Loading…
Reference in New Issue
Block a user