Support live updates on firefox

This commit is contained in:
Ajay
2023-07-28 16:30:28 -04:00
parent db9fc11f13
commit 4069545603
8 changed files with 57 additions and 20 deletions

View File

@@ -4,7 +4,11 @@ import { showDonationLink } from "./utils/configUtils";
import { waitFor } from "./maze-utils";
window.addEventListener('DOMContentLoaded', init);
if (document.readyState === "complete") {
init();
} else {
document.addEventListener("DOMContentLoaded", init);
}
async function init() {
localizeHtmlPage();