mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-09-08 21:20:41 +02:00
fix issue #251
This commit is contained in:
@@ -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"]);
|
||||
|
Reference in New Issue
Block a user