mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
16 lines
319 B
JavaScript
16 lines
319 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();
|
|
});
|
|
|
|
|
|
|