From 27ef6e89501371b58b92a3b805ab31ba8fc79260 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 28 Feb 2017 09:17:27 +0300 Subject: fix .urlParam(); make offline search/reset work similarly to online version --- worker.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worker.js') 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"); } -- cgit v1.2.3