Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const owNotificationWindow = {
// closing the window
$(window).on("beforeunload", function () {
owNotificationWindow.remove();
// Disconnect websocket to prevent missed notifications during page reload
if (typeof notificationSocket !== "undefined") {
notificationSocket.close();
}
});
// Get authority to play notification sound when
// other windows are closed
Expand Down