Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_notifications: Check if NotificationAPI is undefined.
evykassirer4215c9d70769
diff --git a/web/src/message_notifications.js b/web/src/message_notifications.jsindex 2655f81bcba..bc6b8e49dbe 100644--- a/web/src/message_notifications.js+++ b/web/src/message_notifications.js@@ -157,7 +157,7 @@ export function process_notification(notification) {const title = get_notification_title(message, msg_count);- if (notification.desktop_notify) {+ if (notification.desktop_notify && desktop_notifications.NotificationAPI !== undefined) {const icon_url = people.small_avatar_url(message);notification_object = new desktop_notifications.NotificationAPI(title, {icon: icon_url,