diff options
author | pacien | 2018-07-20 22:22:30 +0200 |
---|---|---|
committer | pacien | 2018-07-20 22:22:30 +0200 |
commit | 2f766bbfa6321de5eb9a0a4ce0e7f5df23962348 (patch) | |
tree | f70d9a9dfb521e10e8f936dea31456783165a530 /appcache.js | |
parent | ca443d6e6c46aefeef600a84bece426908dbd951 (diff) | |
download | beamer-viewer-2f766bbfa6321de5eb9a0a4ce0e7f5df23962348.tar.gz |
Enforce constancy
Diffstat (limited to 'appcache.js')
-rw-r--r-- | appcache.js | 6 |
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 | ||
61 | var appCache = new AppCache(); | 61 | const appCache = new AppCache(); |