Skip to content

Commit

Permalink
fix issue #251
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Oct 3, 2022
1 parent 755f1ff commit ed8c039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function WorkerIndex(options){
factory = factory.toString();
}

const is_node_js = self["exports"];
const is_node_js = typeof window === "undefined" && self["exports"];
const _self = this;

this.worker = create(factory, is_node_js, options["worker"]);
Expand Down

0 comments on commit ed8c039

Please sign in to comment.