diff options
author | Andrew Dolgov <[email protected]> | 2017-02-28 09:17:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-28 09:17:27 +0300 |
commit | 27ef6e89501371b58b92a3b805ab31ba8fc79260 (patch) | |
tree | fea8f3daece8b5e30218497362051cae79fda456 /worker.js | |
parent | 16d52ac49f7318620d3a84e172cf18917d70de1b (diff) |
fix .urlParam(); make offline search/reset work similarly to online version
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); } |