mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Merge pull request #968 from gnarf/instanceof-fix
ensure this.workerClass exists before instanceof check
This commit is contained in:
commit
2ae788ca28
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class CentralDispatch extends SharedDispatch {
|
||||||
const provider = this.services[service];
|
const provider = this.services[service];
|
||||||
return provider && {
|
return provider && {
|
||||||
provider,
|
provider,
|
||||||
isRemote: provider instanceof this.workerClass
|
isRemote: Boolean(this.workerClass && provider instanceof this.workerClass)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue