2016-08-24 17:34:53 +08:00
|
|
|
var baseUrl = self.location.hash;
|
|
|
|
baseUrl = baseUrl.replace(/^#/, '');
|
|
|
|
baseUrl = baseUrl.replace(/vs$/, '');
|
|
|
|
|
|
|
|
console.log('WORKER BASE_URL: ' + baseUrl);
|
|
|
|
|
2016-06-25 03:17:11 +08:00
|
|
|
self.MonacoEnvironment = {
|
2016-08-24 17:34:53 +08:00
|
|
|
baseUrl: baseUrl
|
2016-06-24 18:06:32 +08:00
|
|
|
};
|
2016-08-24 17:34:53 +08:00
|
|
|
importScripts(baseUrl + 'vs/base/worker/workerMain.js');
|