From d5f8d215a286d0f8b7fe552a12cc052ac646fc8d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 9 Apr 2023 23:04:35 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts_web/00_commitinfo_data.ts | 2 +- ts_web/index.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 0307aef..0c8ff6e 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.51', + version: '2.0.52', description: 'easy serving of static files' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 0307aef..0c8ff6e 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.51', + version: '2.0.52', description: 'easy serving of static files' } diff --git a/ts_web/index.ts b/ts_web/index.ts index 0c797c6..6c7edfd 100644 --- a/ts_web/index.ts +++ b/ts_web/index.ts @@ -61,7 +61,8 @@ export class ReloadChecker { public async checkReload(lastServerChange: number) { let reloadJustified = false; - (await this.store.get(this.storeKey)) !== lastServerChange ? (reloadJustified = true) : null; + let storedLastServerChange = await this.store.get(this.storeKey); + storedLastServerChange && storedLastServerChange !== lastServerChange ? (reloadJustified = true) : null; if (reloadJustified) { this.store.set(this.storeKey, lastServerChange);