Make worker_client.$guessBasePath look for ace-uncompressed.js as well
This commit is contained in:
parent
e89045d9bb
commit
bf33db7e3e
1 changed files with 10 additions and 8 deletions
|
|
@ -74,9 +74,11 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, module, classname) {
|
||||||
this.$guessBasePath = function() {
|
this.$guessBasePath = function() {
|
||||||
var scripts = document.getElementsByTagName("script");
|
var scripts = document.getElementsByTagName("script");
|
||||||
for (var i=0; i<scripts.length; i++) {
|
for (var i=0; i<scripts.length; i++) {
|
||||||
var m = scripts[i].src.match(/^(.*\/)ace\.js$/);
|
var m = scripts[i].src.
|
||||||
if (m)
|
match(/^(.*\/)ace\.js$|^(.*\/)ace-uncompressed\.js$/);
|
||||||
return m[1];
|
if (m) {
|
||||||
|
return m[1] || m[2];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue