From fc63fd32c855a6287522cf52f9f92b63956281de Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 16 May 2018 21:19:23 -0400 Subject: [PATCH] store current installed version --- src/bw.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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); + } } }