Update index.html

This commit is contained in:
Naiel
2025-05-27 15:33:01 +02:00
committed by GitHub
parent d8ff5cebc0
commit 8e10553e3d

View File

@@ -424,8 +424,9 @@
// The click event on the pop up notification
document.getElementById('reload').addEventListener('click', function(){
setTimeout(() => {removeCache()}, 1000)
newWorker.postMessage({ action: 'skipWaiting' });
removeCache()
});
if ('serviceWorker' in navigator) {