test
This commit is contained in:
parent
5a8dfc60af
commit
34ed676674
@ -266,11 +266,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createTerminal(websocket: string){
|
function createTerminal(websocket: string){
|
||||||
const window = open('', '', 'width=800 height=600')!
|
const NewWindow = window.open('', '', 'width=800 height=600')!
|
||||||
window.document.write('<div id="root" width="100%" height="100%"/>')
|
NewWindow.document.write('<div id="root" width="100%" height="100%"/>')
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(
|
const root = ReactDOM.createRoot(
|
||||||
window.document.getElementById('root') as HTMLElement
|
NewWindow.document.getElementById('root') as HTMLElement
|
||||||
);
|
);
|
||||||
root.render(<Box><TerminalComponent websocket={websocket}/></Box>)
|
root.render(<Box><TerminalComponent websocket={websocket}/></Box>)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user