mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
store current installed version
This commit is contained in:
parent
f9cb8a7a31
commit
fc63fd32c8
@ -116,6 +116,12 @@ export class Main {
|
|||||||
const locale = await this.storageService.get<string>(ConstantsService.localeKey);
|
const locale = await this.storageService.get<string>(ConstantsService.localeKey);
|
||||||
await this.i18nService.init(locale);
|
await this.i18nService.init(locale);
|
||||||
await this.authService.init();
|
await this.authService.init();
|
||||||
|
|
||||||
|
const installedVersion = await this.storageService.get<string>(ConstantsService.installedVersionKey);
|
||||||
|
const currentVersion = this.platformUtilsService.getApplicationVersion();
|
||||||
|
if (installedVersion == null || installedVersion !== currentVersion) {
|
||||||
|
await this.storageService.save(ConstantsService.installedVersionKey, currentVersion);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user