mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-26 04:48:37 +01:00
yesh
This commit is contained in:
parent
7cb8ec404a
commit
bd41b300d6
1 changed files with 15 additions and 3 deletions
|
@ -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 >
|
||||
|
||||
|
|
Loading…
Reference in a new issue