Skip to content

Commit fa9d643

Browse files
authored
Update spawnWorker.js
1 parent 3c707c6 commit fa9d643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker/browser/spawnWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = ({ workerPath, workerBlobURL }) => {
1010
if (Blob && URL && workerBlobURL) {
1111
/* Use Blob to load cross domain worker script */
1212
const blob = new Blob([`importScripts("${workerPath}");`], {
13-
type: 'application/javascript',
13+
type: 'text/javascript',
1414
});
1515
worker = new Worker(URL.createObjectURL(blob));
1616
} else {

0 commit comments

Comments
 (0)