From 2f766bbfa6321de5eb9a0a4ce0e7f5df23962348 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 20 Jul 2018 22:22:30 +0200 Subject: Enforce constancy --- appcache.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'appcache.js') diff --git a/appcache.js b/appcache.js index ba356c2..09b588f 100644 --- a/appcache.js +++ b/appcache.js @@ -27,7 +27,7 @@ class AppCache { "pointless/viewer/timer.js" ]; - var appCache = this; + const appCache = this; self.addEventListener("install", function(event) { event.waitUntil(appCache._onInstall()); }); @@ -38,7 +38,7 @@ class AppCache { } _onInstall() { - var self = this; + const self = this; return caches.open(this.cacheName).then(function(cache) { return cache.addAll(self.filesToCache); }); @@ -58,4 +58,4 @@ class AppCache { } } -var appCache = new AppCache(); +const appCache = new AppCache(); -- cgit v1.2.3