diff --git a/web_src/js/features/notification.js b/web_src/js/features/notification.js index 8b843e98069f..0ea7f93c8d6e 100644 --- a/web_src/js/features/notification.js +++ b/web_src/js/features/notification.js @@ -52,6 +52,9 @@ export function initNotificationCount() { source.close(); window.location.href = AppSubUrl; }); + window.addEventListener('beforeunload', () => { + source.close(); + }); return; }