JS. Trailing spaces removed

This commit is contained in:
meow 2022-06-05 20:54:48 +03:00
parent f2f3f045e5
commit d3ab4a5145
5 changed files with 13 additions and 13 deletions

View file

@ -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');
};