We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a2cf4 commit 6dee25cCopy full SHA for 6dee25c
Thread.ts
@@ -21,7 +21,9 @@ export default class Thread<T> {
21
this.imports = imports || [];
22
this.fileName = this.createFile();
23
this.populateFile(operation);
24
- this.worker = new Worker(new URL(this.fileName, import.meta.url).href, {
+ let workerURL = new URL(this.fileName, import.meta.url);
25
+
26
+ this.worker = new Worker(workerURL.href.startsWith("http") ? "file:"+workerURL.pathname : workerURL.href, {
27
type: "module",
28
deno,
29
});
0 commit comments