Avoid stack trace generation for debugging purposes on release builds.
This commit is contained in:
parent
8ccfecc902
commit
f594129d73
|
@ -20,7 +20,7 @@ function onScriptDisabled() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
debug("onScriptDisabled", document.readyState, new Error().stack);
|
debug("onScriptDisabled", document.readyState, new Error().stack); // DEV ONLY
|
||||||
if (document.readyState === "loading") {
|
if (document.readyState === "loading") {
|
||||||
window.addEventListener("DOMContentLoaded", emulateNoscriptElement, true);
|
window.addEventListener("DOMContentLoaded", emulateNoscriptElement, true);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue