summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-28 09:17:27 +0300
committerAndrew Dolgov <[email protected]>2017-02-28 09:17:27 +0300
commit27ef6e89501371b58b92a3b805ab31ba8fc79260 (patch)
treefea8f3daece8b5e30218497362051cae79fda456 /worker.js
parent16d52ac49f7318620d3a84e172cf18917d70de1b (diff)
fix .urlParam(); make offline search/reset work similarly to online version
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 2fe5677..158fc1c 100644
--- a/worker.js
+++ b/worker.js
@@ -63,6 +63,10 @@ this.addEventListener('fetch', function(event) {
return caches.match("read.html");
}
+ if (req.url.match("offline.html")) {
+ return caches.match("offline.html");
+ }
+
if (req.url.match("index.php")) {
return caches.match("offline.html");
}