Better logging

This commit is contained in:
ostertun
2020-10-14 12:35:15 +02:00
parent 94c6a42106
commit 3b71f3d707
5 changed files with 137 additions and 118 deletions

View File

@@ -233,11 +233,11 @@ self.addEventListener('push', async function(event) {
}
break;
default:
console.log('Unknown channel:', data.channel);
console.log('[sW] Unknown channel:', data.channel);
break;
}
if (!okay) {
console.log('Notification channel not subscribed');
console.log('[sW] Notification channel not subscribed');
return;
}
@@ -268,7 +268,7 @@ self.addEventListener('push', async function(event) {
}
}
console.log('Showing notification');
console.log('[sW] Showing notification');
self.registration.showNotification(data.title, options);
break;