diff --git a/src/common.tsx b/src/common.tsx index 9b465f8..e3dd1dd 100644 --- a/src/common.tsx +++ b/src/common.tsx @@ -288,9 +288,11 @@ export function ActionItem(p: { action: ActionInfo, identifierSubstring?: string `) - const root = ReactDOM.createRoot(NewWindow.document.getElementById('root') as HTMLElement) - root.render() - } + NewWindow.onload = () => { + const root = ReactDOM.createRoot(NewWindow.document.getElementById('root') as HTMLElement); + root.render(); + }; + } return (<>