Skip to content

Commit 86cdca5

Browse files
committed
fix: e2e test
1 parent e92a66d commit 86cdca5

File tree

1 file changed

+4
-0
lines changed
  • packages/web/app/src/laboratory/components/laboratory

1 file changed

+4
-0
lines changed

packages/web/app/src/laboratory/components/laboratory/editor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { initializeMode } from 'monaco-graphql/initializeMode';
44
import { useLaboratory } from '@/laboratory/components/laboratory/context';
55
import MonacoEditor, { loader } from '@monaco-editor/react';
66

7+
if (typeof window !== 'undefined') {
8+
(window as any).monaco = monaco;
9+
}
10+
711
loader.config({ monaco });
812

913
monaco.languages.register({ id: 'dotenv' });

0 commit comments

Comments
 (0)