mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix #652 - fix worker ObjectURL creation
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
url = '../' + url;
|
url = '../' + url;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var typedArray = [(worker + "").replace(/function \(\)\s?\{/, "").replace(/\}[^}]*$/, "")];
|
var fn = (worker + "").replace(/function\s?\(\)\s?\{/, "").replace(/\}[^}]*$/, "");
|
||||||
|
var typedArray = [fn];
|
||||||
var blob = new Blob(typedArray, {
|
var blob = new Blob(typedArray, {
|
||||||
type: "application/javascript"
|
type: "application/javascript"
|
||||||
}); // pass a useful mime type here
|
}); // pass a useful mime type here
|
||||||
|
Reference in New Issue
Block a user