Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 13516bb

Browse files
committed
stop using CDN to pull monaco-editor's loader.js
Fixes #807
1 parent 81526ca commit 13516bb

File tree

1 file changed

+1
-1
lines changed
  • app/plugins/modules/editor/lib

1 file changed

+1
-1
lines changed

app/plugins/modules/editor/lib/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const openEditor = wsk => {
301301
// Monaco uses a custom amd loader that over-rides node's require.
302302
// Keep a reference to node's require so we can restore it after executing the amd loader file.
303303
const nodeRequire = global.require;
304-
ui.injectScript('https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.11.1/min/vs/loader.js')
304+
ui.injectScript(path.join(__dirname, '../node_modules/monaco-editor/min/vs/loader.js'))
305305
ui.injectCSS(path.join(__dirname, 'mono-blue.css'))
306306
ui.injectCSS(path.join(__dirname, 'editor.css'))
307307

0 commit comments

Comments
 (0)