Less errors

This commit is contained in:
Kasper Rynning-Tønnesen
2020-02-19 16:54:16 +01:00
parent bcf8a3de63
commit 8585b85d79

View File

@@ -51,7 +51,10 @@ export default {
} }
window.Notification.requestPermission().then(permission => { window.Notification.requestPermission().then(permission => {
if (permission !== "granted") { if (permission !== "granted") {
throw new Error("Permission not granted for Notification"); console.log(
"Du valgte å ikke ha arbeids-arbeideren til å sende deg dytte-meldinger :'('"
);
return;
} }
if (localStorage.getItem("push") == null) { if (localStorage.getItem("push") == null) {
this.sendMessage("updatePush"); this.sendMessage("updatePush");