From c2abac11b73efceb02fa199c1deb2ab8d9190d92 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 19 Jul 2018 19:29:27 +0200 Subject: Change app root --- appcache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appcache.js') diff --git a/appcache.js b/appcache.js index 87d5e80..22e347a 100644 --- a/appcache.js +++ b/appcache.js @@ -11,7 +11,7 @@ class AppCache { constructor() { this.cacheName = "cache"; this.filesToCache = [ - "viewer.html", + ".", "appcache.js", "pointless/pdfjs/pdf.js", @@ -51,7 +51,7 @@ class AppCache { return caches.open(this.cacheName).then(function(cache) { return fetch(request).then(function(response) { cache.put(request, response.clone()); - return response + return response; }); }); } -- cgit v1.2.3