service worker

This commit is contained in:
2023-06-14 22:58:49 +02:00
parent 15db0673d6
commit c1cda864a1
2 changed files with 91 additions and 0 deletions

5
app.js
View File

@@ -1167,4 +1167,9 @@ window.onbeforeunload = function (event) {
stats.save()
settings.save()
if (playing) return false
}
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js');
}