diff options
author | Andrew Dolgov <[email protected]> | 2020-11-20 20:47:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-20 20:47:20 +0300 |
commit | 55a12de2268eed349eb5b6bb065efd24cc5a0214 (patch) | |
tree | 332d097a5ec309615050d3d400152b835153a361 /worker.js | |
parent | 7df3df758589dde34aa49dfe20a5079e47366014 (diff) |
offline mode fixes
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -87,7 +87,7 @@ this.addEventListener('fetch', function(event) { return resp; } - if (!navigator.onLine) { + /*if (!navigator.onLine) { if (req.url.match("read.html")) { return caches.match("read.html"); } @@ -95,10 +95,9 @@ this.addEventListener('fetch', function(event) { if (req.url.match("offline.html")) { return caches.match("offline.html"); } - } + }*/ - /* global EpubeApp */ - console.log('cache miss for', req.url, 'OL:', navigator.onLine, 'EA:', typeof EpubeApp); + console.log('cache miss for', req.url, 'OL:', navigator.onLine); return fetch(req).then(function(resp) { |