瀏覽代碼

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
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存