summaryrefslogtreecommitdiffstats
path: root/assets/js/notifications.js
diff options
context:
space:
mode:
authormeow <woem>2022-06-05 20:54:48 +0300
committermeow <woem>2022-06-05 20:54:48 +0300
commitd3ab4a51457ee2f0596db8c2a735ef220105dea8 (patch)
tree0949800ad3f6cb30fceb3cd7dd81e93d0608bd43 /assets/js/notifications.js
parentf2f3f045e5482618c6dcc18c410556a3b4045f99 (diff)
downloadinvidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.tar.gz
invidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.tar.bz2
invidious-d3ab4a51457ee2f0596db8c2a735ef220105dea8.zip
JS. Trailing spaces removed
Diffstat (limited to 'assets/js/notifications.js')
-rw-r--r--assets/js/notifications.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/notifications.js b/assets/js/notifications.js
index 51ff1f98..058553d9 100644
--- a/assets/js/notifications.js
+++ b/assets/js/notifications.js
@@ -52,13 +52,13 @@ function create_notification_stream(subscriptions) {
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);
-
+
var system_notification = new Notification(notification_text, {
body: notification.title,
icon: '/ggpht' + new URL(notification.authorThumbnails[2].url).pathname,
img: '/ggpht' + new URL(notification.authorThumbnails[4].url).pathname
});
-
+
system_notification.onclick = function (e) {
open('/watch?v=' + notification.videoId, '_blank');
};