2022-03-16 12:33:34 +01:00
|
|
|
// discourse-skip-module
|
2022-04-11 11:10:00 +02:00
|
|
|
/*global document, Logster */
|
2022-03-16 12:33:34 +01:00
|
|
|
|
2022-04-11 11:47:33 +02:00
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
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>
|
|
|
|
`
|
|
|
|
);
|
|
|
|
});
|
2022-03-16 12:33:34 +01:00
|
|
|
|
2022-04-11 11:47:33 +02:00
|
|
|
Object.keys(requirejs.entries).forEach(function (entry) {
|
|
|
|
if (/\-test/.test(entry)) {
|
|
|
|
requirejs(entry);
|
2022-04-11 11:02:21 +02:00
|
|
|
}
|
2022-04-11 11:47:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
if (window.Logster) {
|
|
|
|
Logster.enabled = false;
|
|
|
|
} else {
|
|
|
|
window.Logster = { enabled: false };
|
2022-03-16 15:49:25 +01:00
|
|
|
}
|