mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
import * as React from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { PopupComponent } from "./PopupComponent";
|
|
import { waitFor } from "../../maze-utils/src";
|
|
import Config from "../config";
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
await waitFor(() => Config.isReady());
|
|
|
|
const root = createRoot(document.body);
|
|
root.render(<PopupComponent/>);
|
|
}) |