Skip to content

Commit fbfd903

Browse files
committed
例子优化
1 parent bd3c0b9 commit fbfd903

File tree

1 file changed

+1
-1
lines changed
  • demo/2019.10.23-load-worker-via-objectUrl/load-via-objectUrl

1 file changed

+1
-1
lines changed

demo/2019.10.23-load-worker-via-objectUrl/load-via-objectUrl/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const workerFileContent = `./worker.js`;
2-
const workerBlob = new Blob(workerFileContent, { type:'text/javascript' });
2+
const workerBlob = new Blob([workerFileContent], { type:'text/javascript' });
33
const workerUrl = URL.createObjectURL(workerBlob);
44
const worker = new Worker(workerUrl);
55

0 commit comments

Comments
 (0)