diff options
-rw-r--r-- | appcache.js | 4 | ||||
-rw-r--r-- | index.html (renamed from viewer.html) | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/appcache.js b/appcache.js index 87d5e80..22e347a 100644 --- a/appcache.js +++ b/appcache.js | |||
@@ -11,7 +11,7 @@ class AppCache { | |||
11 | constructor() { | 11 | constructor() { |
12 | this.cacheName = "cache"; | 12 | this.cacheName = "cache"; |
13 | this.filesToCache = [ | 13 | this.filesToCache = [ |
14 | "viewer.html", | 14 | ".", |
15 | "appcache.js", | 15 | "appcache.js", |
16 | 16 | ||
17 | "pointless/pdfjs/pdf.js", | 17 | "pointless/pdfjs/pdf.js", |
@@ -51,7 +51,7 @@ class AppCache { | |||
51 | return caches.open(this.cacheName).then(function(cache) { | 51 | return caches.open(this.cacheName).then(function(cache) { |
52 | return fetch(request).then(function(response) { | 52 | return fetch(request).then(function(response) { |
53 | cache.put(request, response.clone()); | 53 | cache.put(request, response.clone()); |
54 | return response | 54 | return response; |
55 | }); | 55 | }); |
56 | }); | 56 | }); |
57 | } | 57 | } |
@@ -1,7 +1,7 @@ | |||
1 | <!doctype html> | 1 | <!doctype html> |
2 | 2 | ||
3 | <!-- | 3 | <!-- |
4 | viewer.html | 4 | index.html |
5 | Part of Pointless Viewer, a Beamer presentation viewer | 5 | Part of Pointless Viewer, a Beamer presentation viewer |
6 | Copyright 2018 Pacien TRAN-GIRARD | 6 | Copyright 2018 Pacien TRAN-GIRARD |
7 | License: GNU GPL v3 | 7 | License: GNU GPL v3 |