12 lines
417 B
TypeScript
12 lines
417 B
TypeScript
|
import ReactDOM from "react-dom/client";
|
||
|
import App from "./App.tsx";
|
||
|
import "@/style/global.css";
|
||
|
|
||
|
window.ipcRenderer.on("main-process-message", (_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 />);
|
||
|
});
|