Try...catch on testworker.js

pull/1/head
yflory 6 years ago
parent 3a7d1e5beb
commit e59aec0a45

@ -1158,6 +1158,7 @@ define([
Nthen(function (waitFor2) {
if (Worker) {
var w = waitFor2();
try {
worker = new Worker('/common/outer/testworker.js?' + urlArgs);
worker.onerror = function (errEv) {
errEv.preventDefault();
@ -1170,6 +1171,10 @@ define([
w();
}
};
} catch (e) {
noWorker = true;
w();
}
}
if (typeof(SharedWorker) !== "undefined") {
try {

Loading…
Cancel
Save