kopia lustrzana https://github.com/c9/core
Add comment
rodzic
4d53f45d8f
commit
e0f8ab24d5
|
@ -48,12 +48,13 @@ var WorkerClient = function(topLevelNamespaces, mod, classname, workerUrl) {
|
|||
if (config.get("packaged") || !require.toUrl) {
|
||||
workerUrl = workerUrl || config.moduleUrl(mod, "worker");
|
||||
} else {
|
||||
var skipBalancers = true; // load all scripts from one domain, workers don't support CORS headers
|
||||
var normalizePath = this.$normalizePath;
|
||||
workerUrl = workerUrl || normalizePath(require.toUrl("ace/worker/worker.js", null, "_", true));
|
||||
workerUrl = workerUrl || normalizePath(require.toUrl("ace/worker/worker.js", null, "_", skipBalancers));
|
||||
|
||||
var tlns = {};
|
||||
topLevelNamespaces.forEach(function(ns) {
|
||||
tlns[ns] = normalizePath(require.toUrl(ns, null, "_", true).replace(/(\.js)?(\?.*)?$/, ""));
|
||||
tlns[ns] = normalizePath(require.toUrl(ns, null, "_", skipBalancers).replace(/(\.js)?(\?.*)?$/, ""));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue