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