about summary refs log tree commit diff stats
path: root/src/reader.js
diff options
context:
space:
mode:
authorfox <fox@fakecake.org>2026-06-18 14:28:45 +0300
committerfox <fox@fakecake.org>2026-06-18 14:28:45 +0300
commit8eb610074f829cdcbbac035340318601fa41af5c (patch)
tree414e450fb2de04224554a38ab9ada6f8e11ab1ff /src/reader.js
parent1e5204020f3099ee3c526d5c109a4c5f4b7f5078 (diff)
parentaaa40a97005a6323710ad3823532d56b668dd837 (diff)
downloadthe-epube-8eb610074f829cdcbbac035340318601fa41af5c.tar.gz
the-epube-8eb610074f829cdcbbac035340318601fa41af5c.tar.xz
Merge branch 'dev' into 'master'
ensure getActiveCacheVersion() wouldn't get stuck

See merge request git/the-epube!61
Diffstat (limited to 'src/reader.js')
-rw-r--r--src/reader.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reader.js b/src/reader.js
index f436810..8f8e784 100644
--- a/src/reader.js
+++ b/src/reader.js
@@ -26,7 +26,7 @@ class ReaderClass extends AppCommon {
 
     _prevent_lastread;
 
-    version = BUILD_CACHE_VERSION;
+    cacheVersion = BUILD_CACHE_VERSION;
 
     cosmeticVersion = BUILD_VERSION;
 
@@ -110,7 +110,7 @@ class ReaderClass extends AppCommon {
     }
 
     async init() {
-        console.log('version', this.version, 'current, worker', await this.getActiveCacheVersion());
+        console.log('cache version, current:', this.cacheVersion, 'worker:', await this.getActiveCacheVersion());
 
         this.csrf_token = Cookie.get('epube_csrf_token');
 
@@ -706,7 +706,7 @@ class ReaderClass extends AppCommon {
                 });
             }
 
-            $(".last-mod-timestamp").html(`${this.cosmeticVersion} &mdash; ${this.version}
+            $(".last-mod-timestamp").html(`${this.cosmeticVersion} &mdash; ${this.cacheVersion}
                 (${this.isOnline() ? `<span class='text-success'>Online</span>` : `<span class='text-danger'>Offline</span>`})
                 `);