소스 검색

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) {