missing rename

This commit is contained in:
Bruno Windels 2020-08-12 16:40:47 +02:00
parent e1a5c362dc
commit c6f38a4614

View File

@ -15,12 +15,12 @@ limitations under the License.
*/ */
const VERSION = "%%VERSION%%"; const VERSION = "%%VERSION%%";
const cacheName = `brawl-${VERSION}`;
const OFFLINE_FILES = "%%OFFLINE_FILES%%"; const OFFLINE_FILES = "%%OFFLINE_FILES%%";
// TODO: cache these files when requested // TODO: cache these files when requested
// The difficulty is that these are relative filenames, and we don't have access to document.baseURI // The difficulty is that these are relative filenames, and we don't have access to document.baseURI
// Clients.match({type: "window"}).url and assume they are all the same? they really should be ... safari doesn't support this though // Clients.match({type: "window"}).url and assume they are all the same? they really should be ... safari doesn't support this though
const CACHE_FILES = "%%CACHE_FILES%%"; const CACHE_FILES = "%%CACHE_FILES%%";
const cacheName = `hydrogen-${VERSION}`;
self.addEventListener('install', function(e) { self.addEventListener('install', function(e) {
e.waitUntil( e.waitUntil(