Skip to content

Commit

Permalink
stop using CDN to pull monaco-editor's loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Apr 2, 2018
1 parent 81526ca commit bcd819e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/plugins/modules/editor/lib/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const openEditor = wsk => {
// Monaco uses a custom amd loader that over-rides node's require.
// Keep a reference to node's require so we can restore it after executing the amd loader file.
const nodeRequire = global.require;
ui.injectScript('https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.11.1/min/vs/loader.js')
ui.injectScript(path.join(__dirname, '../node_modules/monaco-editor/min/vs/loader.js'))
ui.injectCSS(path.join(__dirname, 'mono-blue.css'))
ui.injectCSS(path.join(__dirname, 'editor.css'))

Expand Down

0 comments on commit bcd819e

Please sign in to comment.