Avoid stack trace generation for debugging purposes on release builds.

This commit is contained in:
hackademix 2021-03-25 00:31:35 +01:00
parent 8ccfecc902
commit f594129d73
1 changed files with 1 additions and 1 deletions

View File

@ -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") {
window.addEventListener("DOMContentLoaded", emulateNoscriptElement, true);
return;