Commit c95a0f85 authored by Denys Mishunov's avatar Denys Mishunov

Unwrapped ide/index.js from DOMContentLoaded handler

parent fa79e06f
...@@ -73,11 +73,9 @@ export function initIde(el, options = {}) { ...@@ -73,11 +73,9 @@ export function initIde(el, options = {}) {
* @param {Objects} options - Extra options for the IDE (Used by EE). * @param {Objects} options - Extra options for the IDE (Used by EE).
*/ */
export function startIde(options) { export function startIde(options) {
document.addEventListener('DOMContentLoaded', () => { const ideElement = document.getElementById('ide');
const ideElement = document.getElementById('ide'); if (ideElement) {
if (ideElement) { resetServiceWorkersPublicPath();
resetServiceWorkersPublicPath(); initIde(ideElement, options);
initIde(ideElement, options); }
}
});
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment