mirror of https://github.com/BRAVO68WEB/2048.git
PWA Fixes with Workbox
This commit is contained in:
parent
53f4025296
commit
9533666bde
|
@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
|
||||
if ("serviceWorker" in navigator) {
|
||||
window.addEventListener("load", function () {
|
||||
navigator.serviceWorker.register("/sw.js").then(
|
||||
navigator.serviceWorker.register("./sw.js").then(
|
||||
function (registration) {
|
||||
// Registration was successful
|
||||
console.log(
|
||||
|
|
Loading…
Reference in New Issue