diff --git a/src/common.tsx b/src/common.tsx index 4add407..f9fb55c 100644 --- a/src/common.tsx +++ b/src/common.tsx @@ -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('
') + const NewWindow = window.open('', '', 'width=800 height=600')! + NewWindow.document.write('') const root = ReactDOM.createRoot( - window.document.getElementById('root') as HTMLElement + NewWindow.document.getElementById('root') as HTMLElement ); root.render(