fix(workerManager.js) : Added a check for the existence of the worker before calling withSyncedResources

This commit is contained in:
Pranomvignesh 2021-07-16 13:57:20 +05:30
parent cfdc74341d
commit ad78615d47

View file

@ -80,7 +80,9 @@ export class WorkerManager {
_client = client;
})
.then((_) => {
return this._worker.withSyncedResources(resources);
if (this._worker) {
return this._worker.withSyncedResources(resources);
}
})
.then((_) => _client);
}