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){
|
||||
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>)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user