serviceWorker in html

This commit is contained in:
2024-05-12 11:17:03 +02:00
parent b145ae566a
commit c09ed80a52
2 changed files with 1 additions and 4 deletions

View File

@@ -82,10 +82,6 @@ window.onload = function() {
}
loadGame(history.state)
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register(`service-worker.js`)
}
}
window.onpopstate = (event) => loadGame(event.state)