Просмотр исходного кода

Ajout du tag sur la notification HTML5

plopoyop 11 лет назад
Родитель
Сommit
bafe851f90
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      p/scripts/main.js

+ 2 - 1
p/scripts/main.js

@@ -860,7 +860,8 @@ function notifs_html5_show(nb) {
 
 
 	var notification = new window.Notification(str_notif_title_articles, {
 	var notification = new window.Notification(str_notif_title_articles, {
 		icon: "../themes/icons/favicon-256.png",
 		icon: "../themes/icons/favicon-256.png",
-		body: str_notif_body_articles.replace("\d", nb)
+		body: str_notif_body_articles.replace("\d", nb),
+		tag: "freshRssNewArticles"
 	});
 	});
 
 
 	notification.onclick = function() {
 	notification.onclick = function() {