mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
|
|
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)
|
|
});
|
|
|
|
|
|
|