summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormeow <woem>2022-05-21 19:30:51 +0300
committermeow <woem>2022-05-21 19:30:51 +0300
commitb7295977284f060b4c294332d9029ed46aa8f35d (patch)
tree784b21672873378601342b77f2714460c92a7579
parentb72b917af239c46dbe3d4592fc8b215e63703459 (diff)
downloadinvidious-b7295977284f060b4c294332d9029ed46aa8f35d.tar.gz
invidious-b7295977284f060b4c294332d9029ed46aa8f35d.tar.bz2
invidious-b7295977284f060b4c294332d9029ed46aa8f35d.zip
comment changed
extra spaces removed
-rw-r--r--assets/js/notifications.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/assets/js/notifications.js b/assets/js/notifications.js
index 7a30375d..51ff1f98 100644
--- a/assets/js/notifications.js
+++ b/assets/js/notifications.js
@@ -48,8 +48,7 @@ function create_notification_stream(subscriptions) {
update_ticker_count();
- // TODO: ask permission to show notifications via Notification.requestPermission
- // https://developer.mozilla.org/en-US/docs/Web/API/notification
+ // permission for notifications handled on settings page. JS handler is in handlers.js
if (window.Notification && Notification.permission === 'granted') {
var notification_text = notification.liveNow ? notification_data.live_now_text : notification_data.upload_text;
notification_text = notification_text.replace('`x`', notification.author);
@@ -62,7 +61,7 @@ function create_notification_stream(subscriptions) {
system_notification.onclick = function (e) {
open('/watch?v=' + notification.videoId, '_blank');
- };
+ };
}
};