mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
comment changed
extra spaces removed
This commit is contained in:
parent
b72b917af2
commit
b729597728
1 changed files with 2 additions and 3 deletions
|
@ -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');
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue