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