I'm trying to use the search api in a webworker, but this currently fails due to a dependency on the window object.
Would it be feasible to add a way to provide the necessary location origin by other means? I haven't checked the whole code base. Maybe an optional parameter for the init() function would already be sufficient if setting the basePath is a one time operation.
I'm trying to use the search api in a webworker, but this currently fails due to a dependency on the window object.
Would it be feasible to add a way to provide the necessary location origin by other means? I haven't checked the whole code base. Maybe an optional parameter for the init() function would already be sufficient if setting the basePath is a one time operation.