From 34ed67667468bbc12ab26cede3b88454077b0433 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sun, 2 Jun 2024 17:12:17 +0300 Subject: [PATCH] test --- src/common.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }