mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
JS. Trailing spaces removed
This commit is contained in:
parent
f2f3f045e5
commit
d3ab4a5145
5 changed files with 13 additions and 13 deletions
|
@ -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');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue