sourcemint loader detection fix
This commit is contained in:
parent
3824403206
commit
fdce161412
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, mod, classname) {
|
|||
}
|
||||
else {
|
||||
var workerUrl;
|
||||
if (require.supports.indexOf("ucjs2-pinf-0") >= 0) {
|
||||
if (typeof require.supports !== "undefined" && require.supports.indexOf("ucjs2-pinf-0") >= 0) {
|
||||
// We are running in the sourcemint loader.
|
||||
workerUrl = require.nameToUrl("ace/worker/worker_sourcemint");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue