diff --git a/src/bw.ts b/src/bw.ts index 3fca72eddb..4f47c727fa 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -116,6 +116,12 @@ export class Main { const locale = await this.storageService.get(ConstantsService.localeKey); await this.i18nService.init(locale); await this.authService.init(); + + const installedVersion = await this.storageService.get(ConstantsService.installedVersionKey); + const currentVersion = this.platformUtilsService.getApplicationVersion(); + if (installedVersion == null || installedVersion !== currentVersion) { + await this.storageService.save(ConstantsService.installedVersionKey, currentVersion); + } } }