mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -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];
|
||||
return provider && {
|
||||
provider,
|
||||
isRemote: provider instanceof this.workerClass
|
||||
isRemote: Boolean(this.workerClass && provider instanceof this.workerClass)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue