aboutsummaryrefslogtreecommitdiff
path: root/appcache.js
diff options
context:
space:
mode:
Diffstat (limited to 'appcache.js')
-rw-r--r--appcache.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/appcache.js b/appcache.js
index ba356c2..09b588f 100644
--- a/appcache.js
+++ b/appcache.js
@@ -27,7 +27,7 @@ class AppCache {
27 "pointless/viewer/timer.js" 27 "pointless/viewer/timer.js"
28 ]; 28 ];
29 29
30 var appCache = this; 30 const appCache = this;
31 self.addEventListener("install", function(event) { 31 self.addEventListener("install", function(event) {
32 event.waitUntil(appCache._onInstall()); 32 event.waitUntil(appCache._onInstall());
33 }); 33 });
@@ -38,7 +38,7 @@ class AppCache {
38 } 38 }
39 39
40 _onInstall() { 40 _onInstall() {
41 var self = this; 41 const self = this;
42 return caches.open(this.cacheName).then(function(cache) { 42 return caches.open(this.cacheName).then(function(cache) {
43 return cache.addAll(self.filesToCache); 43 return cache.addAll(self.filesToCache);
44 }); 44 });
@@ -58,4 +58,4 @@ class AppCache {
58 } 58 }
59} 59}
60 60
61var appCache = new AppCache(); 61const appCache = new AppCache();