فهرست منبع

Switch to FreshRss tab

Switch to FreshRss tab when notification is clicked and close notification
Crupuk 9 سال پیش
والد
کامیت
7a215f9de9
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      p/scripts/main.js

+ 2 - 0
p/scripts/main.js

@@ -935,6 +935,8 @@ function notifs_html5_show(nb) {
 
 	notification.onclick = function() {
 		window.location.reload();
+                window.focus();
+                notification.close();
 	};
 
 	if (context.html5_notif_timeout !== 0) {