소스 검색

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…
취소
저장