fix: Dispatch DOMContentLoaded after rebuilding UI
This commit is contained in:
@@ -25,10 +25,17 @@ impl Project {
|
|||||||
window.define = tempDefine;
|
window.define = tempDefine;
|
||||||
|
|
||||||
{pages_script}
|
{pages_script}
|
||||||
|
|
||||||
|
const domReadyEvent = new Event('DOMContentLoaded', {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
document.dispatchEvent(domReadyEvent);
|
||||||
|
window.dispatchEvent(domReadyEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
|
|
||||||
})()
|
})()
|
||||||
"# };
|
"# };
|
||||||
let mut script = String::new();
|
let mut script = String::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user