summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-11-20 20:47:20 +0300
committerAndrew Dolgov <[email protected]>2020-11-20 20:47:20 +0300
commit55a12de2268eed349eb5b6bb065efd24cc5a0214 (patch)
tree332d097a5ec309615050d3d400152b835153a361 /worker.js
parent7df3df758589dde34aa49dfe20a5079e47366014 (diff)
offline mode fixes
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/worker.js b/worker.js
index 86790d3..f163910 100644
--- a/worker.js
+++ b/worker.js
@@ -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) {