mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Remove relevant console log,
This commit is contained in:
@@ -55,9 +55,9 @@ function triggerOpenEvent(strMsg) {
|
||||
}
|
||||
|
||||
function onPushNotificationReceived(event) {
|
||||
console.log('Push notification received : ', event);
|
||||
|
||||
if (event.data) {
|
||||
console.log('Event data is : ', event.data.text());
|
||||
|
||||
}
|
||||
event.waitUntil(displayNotification(event).then(() => triggerSeenEvent(event.data.text())));
|
||||
};
|
||||
@@ -90,7 +90,7 @@ function send_message_to_all_clients(msg) {
|
||||
|
||||
self.addEventListener('install', function (event) {
|
||||
self.skipWaiting();
|
||||
console.log('Installed Service Worker : ', event);
|
||||
|
||||
//event.postMessage("SW Says 'Hello back!'");
|
||||
});
|
||||
|
||||
@@ -100,18 +100,18 @@ self.addEventListener('message', function (event) {
|
||||
});
|
||||
|
||||
self.addEventListener('activate', function (event) {
|
||||
console.log('Activated Service Worker : ', event);
|
||||
|
||||
event.waitUntil(self.clients.claim());
|
||||
});
|
||||
|
||||
self.addEventListener('notificationclick', function (event) {
|
||||
console.log('Notification clicked with tag' + event.notification.tag + " and data " + event.notification.data);
|
||||
|
||||
let nidjson = event.notification.data;
|
||||
event.notification.close();
|
||||
event.waitUntil(triggerOpenEvent(nidjson));
|
||||
});
|
||||
|
||||
self.addEventListener('pushsubscriptionchange', function () {
|
||||
console.log('Push Subscription change');
|
||||
|
||||
send_message_to_all_clients("updateRegistration:");
|
||||
});
|
||||
Reference in New Issue
Block a user