0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

re-add qunit bootstrap conditional

Dieser Commit ist enthalten in:
Angus McLeod 2022-04-11 12:17:11 +02:00
Ursprung 576d96b2ba
Commit 3abb65294c

Datei anzeigen

@ -1,24 +1,26 @@
// discourse-skip-module // discourse-skip-module
/*global document, Logster, QUnit */ /*global document, Logster, QUnit */
document.addEventListener("DOMContentLoaded", function () { if (window.location.pathname.indexOf("/w/") > -1 && Ember.testing) {
document.body.insertAdjacentHTML( document.addEventListener("DOMContentLoaded", function () {
"afterbegin", document.body.insertAdjacentHTML(
` "afterbegin",
<div id="ember-testing-container"><div id="ember-testing"></div></div> `
<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style> <div id="ember-testing-container"><div id="ember-testing"></div></div>
` <style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>
); `
}); );
});
Object.keys(requirejs.entries).forEach(function (entry) { Object.keys(requirejs.entries).forEach(function (entry) {
if (/\-test/.test(entry)) { if (/\-test/.test(entry)) {
requirejs(entry); requirejs(entry);
}
});
if (window.Logster) {
Logster.enabled = false;
} else {
window.Logster = { enabled: false };
} }
});
if (window.Logster) {
Logster.enabled = false;
} else {
window.Logster = { enabled: false };
} }