From e0f90849fc394b45c6648cbdff1e804fcd83e2d0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 16 Feb 2018 15:50:23 -0500 Subject: [PATCH] installedVersionKey constant --- src/background/runtime.background.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index a43ea8aca5..7c334c1437 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -263,8 +263,7 @@ export default class RuntimeBackground { private async checkOnInstalled() { if (this.isSafari) { - const installedVersionKey = 'installedVersion'; - const installedVersion = await this.storageService.get(installedVersionKey); + const installedVersion = await this.storageService.get(ConstantsService.installedVersionKey); if (installedVersion == null) { this.onInstalledReason = 'install'; } else if (BrowserApi.getApplicationVersion() !== installedVersion) { @@ -272,7 +271,8 @@ export default class RuntimeBackground { } if (this.onInstalledReason != null) { - await this.storageService.save(installedVersionKey, BrowserApi.getApplicationVersion()); + await this.storageService.save(ConstantsService.installedVersionKey, + BrowserApi.getApplicationVersion()); } }