From 62322050dec662a05c7185f70845bdb27cd59c6c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 23:03:23 +0200 Subject: [PATCH] Expose editor store globally in development environment --- src/main.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.tsx b/src/main.tsx index 2678d5f5..50077a23 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -20,6 +20,10 @@ const editorStore = createEditorStore({ }); const initialStatusMessage = [storageAccess.diagnostic, bootstrapResult.diagnostic].filter(Boolean).join(" ") || undefined; +if (import.meta.env.DEV) { + (window as Window & { __webeditor3dEditorStore?: typeof editorStore }).__webeditor3dEditorStore = editorStore; +} + ReactDOM.createRoot(rootElement).render(