This commit is contained in:
ACoolName 2024-06-02 17:12:17 +03:00
parent 5a8dfc60af
commit 34ed676674

View File

@ -266,11 +266,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
}
function createTerminal(websocket: string){
const window = open('', '', 'width=800 height=600')!
window.document.write('<div id="root" width="100%" height="100%"/>')
const NewWindow = window.open('', '', 'width=800 height=600')!
NewWindow.document.write('<div id="root" width="100%" height="100%"/>')
const root = ReactDOM.createRoot(
window.document.getElementById('root') as HTMLElement
NewWindow.document.getElementById('root') as HTMLElement
);
root.render(<Box><TerminalComponent websocket={websocket}/></Box>)
}