mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 16:23:48 +08:00
DEV: Disable Ember's LOG_STACKTRACE_ON_DEPRECATION (#30275)
This feature writes a stack trace as part of the message. That means it is not sourcemapped by the browser, and you have further to scroll to find the real backtrace. In the past we avoided this feature with our production 'deprecation shim', but that was removed as part of our Ember 5.12 upgrade.
This commit is contained in:
parent
29dad8bbea
commit
b410677fcd
|
@ -17,6 +17,7 @@ module.exports = function (environment) {
|
||||||
Date: false,
|
Date: false,
|
||||||
String: false,
|
String: false,
|
||||||
},
|
},
|
||||||
|
LOG_STACKTRACE_ON_DEPRECATION: false,
|
||||||
},
|
},
|
||||||
exportApplicationGlobal: true,
|
exportApplicationGlobal: true,
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,6 @@ document.addEventListener("discourse-init", () => {
|
||||||
const testingCore = !testingTheme && (!target || target === "core");
|
const testingCore = !testingTheme && (!target || target === "core");
|
||||||
const disableAutoStart = params.get("qunit_disable_auto_start") === "1";
|
const disableAutoStart = params.get("qunit_disable_auto_start") === "1";
|
||||||
|
|
||||||
window.EmberENV.LOG_STACKTRACE_ON_DEPRECATION = false;
|
|
||||||
|
|
||||||
document.body.insertAdjacentHTML(
|
document.body.insertAdjacentHTML(
|
||||||
"afterbegin",
|
"afterbegin",
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user