diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 8167c28..84ac890 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -55,6 +55,16 @@ export default function App({ } }); + + useEffect(() => { + if (excalidrawAPI) { + (window as any).excalidrawAPI = excalidrawAPI; + } + return () => { + (window as any).excalidrawAPI = null; + }; + }, [excalidrawAPI]); + const lastSentCanvasDataRef = useRef(""); const debouncedLogChange = useCallback(