1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-08 21:20:41 +02:00
This commit is contained in:
Thomas Wilkerling
2022-10-03 14:46:11 +02:00
parent 755f1ffbf8
commit ed8c039aa8

View File

@@ -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"]);