From 8585b85d79e58fd26c19c9461d1c19955163b7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 19 Feb 2020 16:54:16 +0100 Subject: [PATCH] Less errors --- src/Vinlottis.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Vinlottis.vue b/src/Vinlottis.vue index cfb3bcb..f06c2e0 100644 --- a/src/Vinlottis.vue +++ b/src/Vinlottis.vue @@ -51,7 +51,10 @@ export default { } window.Notification.requestPermission().then(permission => { 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) { this.sendMessage("updatePush");