about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-08-01 22:54:17 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-08-01 22:54:17 +0300
commit79e2776b861e2758fb2ddd4fb306413462b982e3 (patch)
tree7ceac50b330b31e10a64977961c3f821ab6057ec /src
parent37a54996a38432bc3f78a7cdf4e91d1001233383 (diff)
downloadthe-epube-79e2776b861e2758fb2ddd4fb306413462b982e3.tar.gz
the-epube-79e2776b861e2758fb2ddd4fb306413462b982e3.tar.xz
ignore query params while matching reader UI (i.e. read.html?id=...
Diffstat (limited to 'src')
-rw-r--r--src/worker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.ts b/src/worker.ts
index 1082379..a1e69a0 100644
--- a/src/worker.ts
+++ b/src/worker.ts
@@ -139,7 +139,7 @@ sw.addEventListener('fetch', (event) => {
             catch (err) {
                 // i.e. read.html?id=1234&b=1234
                 if (url.pathname.includes("read.html")) {
-                    return caches.match("/read.html");
+                    return caches.match("/read.html", { ignoreSearch: true });
                 }
                 else {
                     return caches.match('/offline.html');