mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:38:25 +01:00
yeahs
This commit is contained in:
parent
d022c58fc7
commit
b26b1f3f5f
1 changed files with 15 additions and 3 deletions
|
@ -604,9 +604,21 @@ font-weight: 1000;
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/css/custom-css.js"> </script>
|
<script src="/css/custom-css.js"> </script>
|
||||||
<script> var cacheVersion = 1;
|
<script> 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);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
caches.delete('offline-cache' + cacheVersion)
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue