mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
comment changed
extra spaces removed
This commit is contained in:
@ -48,8 +48,7 @@ function create_notification_stream(subscriptions) {
|
|||||||
|
|
||||||
update_ticker_count();
|
update_ticker_count();
|
||||||
|
|
||||||
// TODO: ask permission to show notifications via Notification.requestPermission
|
// permission for notifications handled on settings page. JS handler is in handlers.js
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/notification
|
|
||||||
if (window.Notification && Notification.permission === 'granted') {
|
if (window.Notification && Notification.permission === 'granted') {
|
||||||
var notification_text = notification.liveNow ? notification_data.live_now_text : notification_data.upload_text;
|
var notification_text = notification.liveNow ? notification_data.live_now_text : notification_data.upload_text;
|
||||||
notification_text = notification_text.replace('`x`', notification.author);
|
notification_text = notification_text.replace('`x`', notification.author);
|
||||||
|
Reference in New Issue
Block a user