diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-08-01 22:54:17 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-08-01 22:54:17 +0300 |
| commit | 79e2776b861e2758fb2ddd4fb306413462b982e3 (patch) | |
| tree | 7ceac50b330b31e10a64977961c3f821ab6057ec /src | |
| parent | 37a54996a38432bc3f78a7cdf4e91d1001233383 (diff) | |
| download | the-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.ts | 2 |
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'); |
