mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-28 03:28:35 +08:00
docs: clear service worker
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<p align="center">
|
||||
<img src="https://docs.rsshub.app/logo.png" alt="RSSHub" width="100">
|
||||
<img src="https://docs.rsshub.app/img/logo.png" alt="RSSHub" width="100">
|
||||
</p>
|
||||
<h1 align="center">RSSHub</h1>
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
self.addEventListener('install', function (e) {
|
||||
self.skipWaiting();
|
||||
});
|
||||
|
||||
self.addEventListener('activate', function (e) {
|
||||
self.registration
|
||||
.unregister()
|
||||
.then(function () {
|
||||
return self.clients.matchAll();
|
||||
})
|
||||
.then(function (clients) {
|
||||
clients.forEach((client) => client.navigate(client.url));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user