mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
Support live updates on firefox
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user