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

@@ -24,7 +24,11 @@ let embed = false;
const categoryChoosers: CategoryChooser[] = [];
const unsubmittedVideos: UnsubmittedVideos[] = [];
window.addEventListener('DOMContentLoaded', init);
if (document.readyState === "complete") {
init();
} else {
document.addEventListener("DOMContentLoaded", init);
}
async function init() {
localizeHtmlPage();