serviceWorker in html

This commit is contained in:
2024-05-12 11:20:05 +02:00
parent a0893fd881
commit aa2475dc3a
4 changed files with 12 additions and 15 deletions

4
app.js
View File

@@ -342,8 +342,4 @@ window.onbeforeunload = function (event) {
gui.save()
localStorage["teTraHighScore"] = stats.highScore
return !game.playing
}
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./jsm/service-worker.js');
}