Commit 68da4425 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch '262402-unwrap-ide-code' into 'master'

Unwrapped ide/index.js from DOMContentLoaded handler

See merge request gitlab-org/gitlab!45507
parents a7d7646f c95a0f85
......@@ -73,11 +73,9 @@ export function initIde(el, options = {}) {
* @param {Objects} options - Extra options for the IDE (Used by EE).
*/
export function startIde(options) {
document.addEventListener('DOMContentLoaded', () => {
const ideElement = document.getElementById('ide');
if (ideElement) {
resetServiceWorkersPublicPath();
initIde(ideElement, options);
}
});
const ideElement = document.getElementById('ide');
if (ideElement) {
resetServiceWorkersPublicPath();
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