diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 4 | ||||
| -rw-r--r-- | src/index.d.ts | 2 | ||||
| -rw-r--r-- | src/reader.js | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js index fd02999..095df1c 100644 --- a/src/app.js +++ b/src/app.js @@ -124,6 +124,8 @@ class AppClass extends AppCommon { version = BUILD_CACHE_VERSION; + cosmeticVersion = BUILD_VERSION; + // cacheManifest = []; csrf_token = ""; @@ -186,6 +188,8 @@ class AppClass extends AppCommon { this.getAll(); }); + $(".cosmetic_version").attr('title', this.cosmeticVersion); + } logout() { diff --git a/src/index.d.ts b/src/index.d.ts index d84c22a..4bf1153 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -16,3 +16,5 @@ declare var localforage: LocalForage; declare const BUILD_CACHE_VERSION: string; declare const BUILD_MANIFEST_ASSETS: []; + +declare const BUILD_VERSION: string; diff --git a/src/reader.js b/src/reader.js index 259e66d..e1b2ab1 100644 --- a/src/reader.js +++ b/src/reader.js @@ -30,6 +30,8 @@ class ReaderClass extends AppCommon { version = BUILD_CACHE_VERSION; + cosmeticVersion = BUILD_VERSION; + /** * @type {ePub.Book} */ @@ -696,7 +698,7 @@ class ReaderClass extends AppCommon { }); } - $(".last-mod-timestamp").html(`${this.version} + $(".last-mod-timestamp").html(`${this.cosmeticVersion} — ${this.version} (${this.isOnline() ? `<span class='text-success'>Online</span>` : `<span class='text-danger'>Offline</span>`}) `); |
