Make clicking notifications give focus to browser

Resolves Trac #1081

(imported from commit d5546ecda53a57b6dbbfc65db923432f8e4cc7b2)
This commit is contained in:
Jeff Arnold
2013-03-12 16:03:42 -04:00
parent 3c95013a15
commit e9cbae67b3

View File

@@ -151,6 +151,7 @@ function process_desktop_notification(message) {
notification_object.onclick = function () {
notification_object.cancel();
delete notice_memory[key];
window.focus();
};
notification_object.onclose = function () {
delete notice_memory[key];