Skip to content

Commit

Permalink
throw error when worker ref not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Nov 1, 2024
1 parent 43cd854 commit 1ffbfe8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/connection_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export class ConnectionHelper {
if (workerRef) {
this.queryManager = new workerRef.QueryManager(this.processFinishedQuery_.bind(this));
}
else {
throw new Error('JsStoreWorker not found. Either pass web worker or inject JsStore Worker.');
}
}

private onMessageFromWorker_(msg) {
Expand Down

0 comments on commit 1ffbfe8

Please sign in to comment.