settings inside service worker

This commit is contained in:
Jonas Weinz 2019-03-21 15:55:00 +01:00
parent 3634076c73
commit f37cab9cc6

3
sw.js
View File

@ -1,4 +1,7 @@
var home = "https://the-cake-is-a-lie.net/website/ultimate_tictactoe/";
var rel_home = "/website/ultimate_tictactoe";
self.addEventListener('install', function (e) { self.addEventListener('install', function (e) {
e.waitUntil( e.waitUntil(
caches.open('your-magic-cache').then(function (cache) { caches.open('your-magic-cache').then(function (cache) {