Wrap entire error loading script in anonymous function to avoid leaks
This commit is contained in:
parent
0ffd4d60d9
commit
84db8d8866
|
@ -8,12 +8,13 @@
|
|||
* so that the timeout can be triggered while slow JS is loading
|
||||
*/
|
||||
|
||||
function displayReload() {
|
||||
(function() {
|
||||
var displayReload = function displayReload() {
|
||||
var loadingReload = document.getElementById("loading-reload");
|
||||
if (loadingReload) {
|
||||
loadingReload.style.display = "block";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var loadingSlowTimeout = setTimeout(function() {
|
||||
var loadingSlow = document.getElementById("loading-slow");
|
||||
|
@ -59,3 +60,4 @@ window.g_LoungeErrorHandler = function LoungeErrorHandler(e) {
|
|||
};
|
||||
|
||||
window.addEventListener("error", window.g_LoungeErrorHandler);
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue