mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 12:25:54 +02:00
✌️
This commit is contained in:
@@ -63,3 +63,9 @@ self.addEventListener('push', ev => {
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
self.addEventListener('message', ev => {
|
||||
if (ev.data == 'clear') {
|
||||
caches.keys().then(keys => keys.forEach(key => caches.delete(key)));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user