1
0
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:
Kyle Spearrin 2018-05-16 21:19:23 -04:00
parent f9cb8a7a31
commit fc63fd32c8

View File

@ -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);
}
} }
} }