Skip to content

Commit

Permalink
Test other method in correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
FormularSumo committed Sep 7, 2024
1 parent 13280ec commit 2f8901c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CACHE_NAME = `0.12.0.14`; // stable.pre-release.minor.web
const CACHE_NAME = `0.12.0.15`; // stable.pre-release.minor.web

// Use the install event to pre-cache all initial resources.
self.addEventListener('install', event => {
Expand All @@ -15,8 +15,6 @@ self.addEventListener('install', event => {
'game.js'
]);
cache.delete('game.data')
window.location.reload();
// client.navigate(client.url);
})());
});

Expand All @@ -33,6 +31,8 @@ self.addEventListener("activate", (e) => { //Delete old caches
);
}),
);
// window.location.reload();
client.navigate(client.url);
});

self.addEventListener('fetch', event => {
Expand Down

0 comments on commit 2f8901c

Please sign in to comment.