mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
Make clicking notifications give focus to browser
Resolves Trac #1081 (imported from commit d5546ecda53a57b6dbbfc65db923432f8e4cc7b2)
This commit is contained in:
@@ -151,6 +151,7 @@ function process_desktop_notification(message) {
|
|||||||
notification_object.onclick = function () {
|
notification_object.onclick = function () {
|
||||||
notification_object.cancel();
|
notification_object.cancel();
|
||||||
delete notice_memory[key];
|
delete notice_memory[key];
|
||||||
|
window.focus();
|
||||||
};
|
};
|
||||||
notification_object.onclose = function () {
|
notification_object.onclose = function () {
|
||||||
delete notice_memory[key];
|
delete notice_memory[key];
|
||||||
|
|||||||
Reference in New Issue
Block a user