diff --git a/templates/adsb_dashboard.html b/templates/adsb_dashboard.html index f199adc..be7234a 100644 --- a/templates/adsb_dashboard.html +++ b/templates/adsb_dashboard.html @@ -21,20 +21,6 @@ window.INTERCEPT_ADSB_AUTO_START = {{ adsb_auto_start | tojson }}; window.INTERCEPT_DEFAULT_LAT = {{ default_latitude | tojson }}; window.INTERCEPT_DEFAULT_LON = {{ default_longitude | tojson }}; - if ('serviceWorker' in navigator) { - window.addEventListener('load', () => { - navigator.serviceWorker.getRegistrations() - .then((registrations) => Promise.all(registrations.map((registration) => registration.unregister()))) - .catch(() => {}); - if ('caches' in window) { - caches.keys() - .then((keys) => Promise.all( - keys.filter((key) => key.startsWith('intercept-')).map((key) => caches.delete(key)) - )) - .catch(() => {}); - } - }); - } diff --git a/templates/index.html b/templates/index.html index acbedab..d7e34c6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16407,22 +16407,7 @@ -