1
Fork 0
This commit is contained in:
Ashley 2023-12-30 15:23:15 +00:00
parent 7cb8ec404a
commit bd41b300d6

View file

@ -1325,9 +1325,21 @@ links.forEach(link => {
<script> // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later
var cacheVersion = 1;
caches.delete('offline-cache' + cacheVersion)
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for (let registration of registrations) {
registration.unregister();
}
});
if ('caches' in window) {
caches.keys().then(function(cacheNames) {
cacheNames.forEach(function(cacheName) {
caches.delete(cacheName);
});
});
}
}
</script>
</body >