about summary refs log tree commit diff stats
path: root/src/reader.js
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-15 15:02:49 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-15 15:02:49 +0300
commit5be2e526840b36ecbdb95ee4445e7b525af71ca9 (patch)
tree52645718b9db6adfdc56518c65825840b6f3d996 /src/reader.js
parentf8ca5b587d15d03823eabf4601859b84a1238b3a (diff)
downloadthe-epube-5be2e526840b36ecbdb95ee4445e7b525af71ca9.tar.gz
the-epube-5be2e526840b36ecbdb95ee4445e7b525af71ca9.tar.xz
switch index.php to a static html page
Diffstat (limited to 'src/reader.js')
-rw-r--r--src/reader.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.js b/src/reader.js
index e1b2ab1..7bcac76 100644
--- a/src/reader.js
+++ b/src/reader.js
@@ -192,7 +192,7 @@ class ReaderClass extends AppCommon {
                 })
                 .fail(function(e) {
                     if (e && e.status == 401) {
-                        window.location.href = "index.php";
+                        window.location.href = "index.html";
                     }
                 });
         }
@@ -1310,13 +1310,13 @@ class ReaderClass extends AppCommon {
         if (this.isOnline()) {
             $.post("backend.php", { op: "storelastread", id: this.urlParam("id"), page: currentPage,
                 cfi: currentCfi, timestamp: lastread_timestamp }, () => {
-                window.location.href = this.urlParam("rt") ? "index.php?mode=" + this.urlParam("rt") : "index.php";
+                window.location.href = this.urlParam("rt") ? "index.html?mode=" + this.urlParam("rt") : "index.html";
             })
                 .fail(() => {
-                    window.location.href = "index.php";
+                    window.location.href = "index.html";
                 });
         } else {
-            window.location.href = "index.php";
+            window.location.href = "index.html";
         }
     }