mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve notification
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
self.addEventListener('install', function() {
|
||||
self.skipWaiting();
|
||||
});
|
||||
|
||||
self.addEventListener('activate', function(event) {
|
||||
event.waitUntil(clients.claim());
|
||||
});
|
||||
|
||||
self.addEventListener('notificationclick', function(event) {
|
||||
// Close the notification when it is clicked
|
||||
event.notification.close();
|
||||
console.log(event)
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user