diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 15dcbaa6..7e495b89 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -66,15 +66,6 @@ }; onMount(async () => { - const getWorkerModule = (moduleUrl: string, label: string) => { - return new Worker( - new URL('monaco-editor/esm/vs/' + moduleUrl + '.js?worker', import.meta.url), - { - name: label, - type: 'module' - } - ); - }; self.MonacoEnvironment = { getWorker(_, label) { if (label === 'json') { @@ -107,7 +98,7 @@ run: function () { syncDiagram(); logEvent('renderDiagram', { - method: 'keyboadShortcut' + method: 'keyboardShortcut' }); } });