Skip to content

Commit

Permalink
fix: clear (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed May 27, 2024
1 parent 32fbec0 commit 4c100f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,17 @@ const fetchAllNetworks = () => {

onMounted(() => {
fetchAllNetworks();

try {
caches.keys().then(cacheNames => {
return Promise.all(
cacheNames.map(cacheName => {
return caches.delete(cacheName);
})
);
});
} catch {
// pass
}
});
</script>

0 comments on commit 4c100f7

Please sign in to comment.