mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00: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:
2
jslib
2
jslib
Submodule jslib updated: 3d7b427b0e...d68c1dafaf
@@ -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: (
|
||||||
|
|||||||
Reference in New Issue
Block a user