fix: Dispatch DOMContentLoaded after rebuilding UI

This commit is contained in:
2026-05-22 09:14:46 +02:00
parent beabd7b1f6
commit 4db5d29907
+8 -1
View File
@@ -25,10 +25,17 @@ impl Project {
window.define = tempDefine;
{pages_script}
const domReadyEvent = new Event('DOMContentLoaded', {
bubbles: true,
cancelable: true,
});
document.dispatchEvent(domReadyEvent);
window.dispatchEvent(domReadyEvent);
};
document.head.appendChild(script);
})()
"# };
let mut script = String::new();