mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-25 21:51:30 +01:00
Always migrate envUrls (#614)
This commit is contained in:
parent
8460629de4
commit
cc285e5ea7
@ -177,9 +177,7 @@ export class StateMigrationService {
|
||||
v1Keys.enableBiometric,
|
||||
options
|
||||
),
|
||||
environmentUrls:
|
||||
(await this.storageService.get<EnvironmentUrls>(v1Keys.environmentUrls, options)) ??
|
||||
new EnvironmentUrls(),
|
||||
environmentUrls: null,
|
||||
installedVersion: await this.storageService.get<string>(
|
||||
v1Keys.installedVersion,
|
||||
options
|
||||
@ -489,6 +487,10 @@ export class StateMigrationService {
|
||||
},
|
||||
};
|
||||
|
||||
initialState.globals.environmentUrls =
|
||||
(await this.storageService.get<EnvironmentUrls>(v1Keys.environmentUrls, options)) ??
|
||||
new EnvironmentUrls();
|
||||
|
||||
await this.storageService.save("state", initialState, options);
|
||||
|
||||
if (await this.secureStorageService.has(v1Keys.key, { keySuffix: "biometric" })) {
|
||||
|
Loading…
Reference in New Issue
Block a user