12 lines
405 B
TypeScript
12 lines
405 B
TypeScript
import ReactDOM from "react-dom/client";
|
|
import App from "./App.tsx";
|
|
import "@/style/global.css";
|
|
|
|
window.ipcRenderer.on("mount", (_event, message) => {
|
|
const { platform, theme } = message;
|
|
document.querySelector("html")?.setAttribute("platform", platform);
|
|
document.querySelector("html")?.setAttribute("theme", theme);
|
|
|
|
ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
|
|
});
|