web worker adjustment for ios7 (#409)

This commit is contained in:
guybedford 2015-04-23 13:30:10 +02:00
parent 1ffea562e1
commit 650b220b56
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ function core(loader) {
// override locate to allow baseURL to be document-relative
var baseURI;
if (typeof window == 'undefined' &&
typeof WorkerGlobalScope == 'undefined') {
typeof WorkerGlobalScope == 'undefined' && typeof process != 'undefined') {
baseURI = 'file:' + process.cwd() + '/';
if (isWindows)
baseURI = baseURI.replace(/\\/g, '/');

View File

@ -60,7 +60,7 @@ var $__curScript, __eval;
$__global.upgradeSystemLoader();
}
}
else if (typeof WorkerGlobalScope != 'undefined' && typeof importScripts != 'undefined') {
else if (typeof importScripts != 'undefined') {
doEval = function(source) {
try {
eval(source);
@ -99,4 +99,4 @@ var $__curScript, __eval;
}
})();
})(typeof window != 'undefined' ? window : (typeof WorkerGlobalScope != 'undefined' ? self : global));
})(typeof window != 'undefined' ? window : (typeof global != 'undefined' ? global : self));