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:
parent
a6d3aff9f1
commit
5d6f354443
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user