mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 10:03:44 +08:00
FIX: Don't run in testing mode
This commit is contained in:
parent
81a9137be5
commit
b906dc4f47
|
@ -77,7 +77,7 @@ export default function loadScript(url, opts) {
|
||||||
// to dynamically load more JS. In that case, add the `scriptTag: true`
|
// to dynamically load more JS. In that case, add the `scriptTag: true`
|
||||||
// option.
|
// option.
|
||||||
if (opts.scriptTag) {
|
if (opts.scriptTag) {
|
||||||
if (Ember.Test) {
|
if (Ember.testing) {
|
||||||
throw `In test mode scripts cannot be loaded async ${cdnUrl}`;
|
throw `In test mode scripts cannot be loaded async ${cdnUrl}`;
|
||||||
}
|
}
|
||||||
loadWithTag(cdnUrl, cb);
|
loadWithTag(cdnUrl, cb);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user