Преглед изворни кода

Close EventSource before unloading the page (#11539) (#11557)

Should eliminate a error in the Firefox console regarding the connection
being interrupted while the page was loading.
tags/v1.12.0-rc2
silverwind пре 4 година
родитељ
комит
d131d53cbb
No account linked to committer's email address
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3
    0
      web_src/js/features/notification.js

+ 3
- 0
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;
}


Loading…
Откажи
Сачувај