mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
web worker adjustment for ios7 (#409)
This commit is contained in:
parent
1ffea562e1
commit
650b220b56
@ -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, '/');
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user