This commit is contained in:
ACoolName 2024-06-02 22:02:45 +03:00
parent c62c20e10a
commit 79bc99bc42

View File

@ -274,11 +274,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
<script src="xterm/lib/xterm.js"></script>
</head>
<body>
<div id="terminal"></div>
<div id="root"></div>
</body>
</html>
`)
const root = ReactDOM.createRoot(NewWindow.document.getElementById('terminal')!)
const root = ReactDOM.createRoot(NewWindow.document.getElementById('root') as HTMLElement)
root.render(<TerminalComponent websocket={websocket}/>)
}