From 16f7aefb8281ce49b170cb48b311704b491c0e62 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sun, 2 Jun 2024 22:14:03 +0300 Subject: [PATCH] test --- src/common.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 (<>