From 6e58e8d50f8c94f53dfc596383017b122524a41a Mon Sep 17 00:00:00 2001 From: Ivanq Date: Fri, 26 Apr 2019 12:55:33 +0300 Subject: [PATCH] Don't require WebNotifications permission --- src/Ui/media/Wrapper.coffee | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Ui/media/Wrapper.coffee b/src/Ui/media/Wrapper.coffee index 496737ca..247f4f6a 100644 --- a/src/Ui/media/Wrapper.coffee +++ b/src/Ui/media/Wrapper.coffee @@ -243,11 +243,6 @@ class Wrapper actionWebNotification: (message) -> $.when(@event_site_info).done => - # Check that this site may send notifications - if "WebNotifications" not in @site_info.settings.permissions - res = {"error": "No WebNotifications permission"} - @sendInner {"cmd": "response", "to": message.id, "result": res} - return # Check that the wrapper may send notifications if Notification.permission == "granted" @displayWebNotification message @@ -261,11 +256,6 @@ class Wrapper actionCloseWebNotification: (message) -> $.when(@event_site_info).done => - # Check that this site may send notifications - if "WebNotifications" not in @site_info.settings.permissions - res = {"error": "No WebNotifications permission"} - @sendInner {"cmd": "response", "to": message.id, "result": res} - return id = message.params[0] @web_notifications[id].close()