Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

notifications: Fix incorrectly converted focus method call.

Anders Kaseorg5f0bd44d58d1
diff --git a/static/js/notifications.js b/static/js/notifications.js
index 8b0568e2588..3625158a2a4 100644
--- a/static/js/notifications.js
+++ b/static/js/notifications.js
@@ -412,7 +412,7 @@ function process_notification(notification) {
if (message.type !== "test-notification") {
narrow.by_topic(message.id, {trigger: "notification"});
}
- window.trigger("focus");
+ window.focus();
});
notification_object.addEventListener("close", () => {
notice_memory.delete(key);