Fix #652 - fix worker ObjectURL creation

This commit is contained in:
juliandescottes 2017-05-08 01:17:29 +02:00
parent a6d3aff9f1
commit 5d6f354443

View File

@ -10,7 +10,8 @@
url = '../' + url;
}
} else {
var typedArray = [(worker + "").replace(/function \(\)\s?\{/, "").replace(/\}[^}]*$/, "")];
var fn = (worker + "").replace(/function\s?\(\)\s?\{/, "").replace(/\}[^}]*$/, "");
var typedArray = [fn];
var blob = new Blob(typedArray, {
type: "application/javascript"
}); // pass a useful mime type here