mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Remove reliance on loadDevEditor
This commit is contained in:
parent
745893d211
commit
17faf6a3b7
4 changed files with 11 additions and 16 deletions
|
|
@ -1,4 +1,10 @@
|
|||
var baseUrl = self.location.hash;
|
||||
baseUrl = baseUrl.replace(/^#/, '');
|
||||
baseUrl = baseUrl.replace(/vs$/, '');
|
||||
|
||||
console.log('WORKER BASE_URL: ' + baseUrl);
|
||||
|
||||
self.MonacoEnvironment = {
|
||||
baseUrl: 'http://localhost:8088/monaco-editor/node_modules/monaco-editor-core/min/'
|
||||
baseUrl: baseUrl
|
||||
};
|
||||
importScripts('http://localhost:8088/monaco-editor/node_modules/monaco-editor-core/min/vs/base/worker/workerMain.js');
|
||||
importScripts(baseUrl + 'vs/base/worker/workerMain.js');
|
||||
Loading…
Add table
Add a link
Reference in a new issue