mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 17:17:53 +01:00
Should eliminate a error in the Firefox console regarding the connection being interrupted while the page was loading.
This commit is contained in:
parent
2a6e6bf0f1
commit
d131d53cbb
@ -52,6 +52,9 @@ export function initNotificationCount() {
|
|||||||
source.close();
|
source.close();
|
||||||
window.location.href = AppSubUrl;
|
window.location.href = AppSubUrl;
|
||||||
});
|
});
|
||||||
|
window.addEventListener('beforeunload', () => {
|
||||||
|
source.close();
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user