Parcourir la source

Fix notif_body_new_articles (#5042)

#fix https://github.com/FreshRSS/FreshRSS/issues/5041
Alexandre Alapetite il y a 3 ans
Parent
commit
d8744a9ec1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -1569,7 +1569,7 @@ function notifs_html5_show(nb, nb_new) {
 
 
 	const notification = new window.Notification(context.i18n.notif_title_articles, {
 	const notification = new window.Notification(context.i18n.notif_title_articles, {
 		icon: '../themes/icons/favicon-256-padding.png',
 		icon: '../themes/icons/favicon-256-padding.png',
-		body: context.i18n.notif_body_new_articles.replace('%d', nb_new) + ' ' + context.i18n.notif_body_unread_articles.replace('%d', nb),
+		body: context.i18n.notif_body_new_articles.replace('%%d', nb_new) + ' ' + context.i18n.notif_body_unread_articles.replace('%%d', nb),
 		tag: 'freshRssNewArticles',
 		tag: 'freshRssNewArticles',
 	});
 	});