2024-08-29 16:59:25 +08:00
|
|
|
import ReactDOM from "react-dom/client";
|
|
|
|
import App from "./App.tsx";
|
|
|
|
import "@/style/global.css";
|
|
|
|
|
2024-09-06 14:27:41 +08:00
|
|
|
window.ipcRenderer.on("mount", (_event, message) => {
|
|
|
|
const { platform, theme } = message;
|
|
|
|
document.querySelector("html")?.setAttribute("platform", platform);
|
|
|
|
document.querySelector("html")?.setAttribute("theme", theme);
|
2024-08-29 16:59:25 +08:00
|
|
|
|
|
|
|
ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
|
|
|
|
});
|