Check for runtime
This commit is contained in:
1 parent
283804c21c
commit
eca66e9dde
1 file changed
+3
-1
@@ -18,7 +18,9 @@ class Scratch3SoundBlocks {
|
||||
}
|
||||
|
||||
this._onTargetCreated = this._onTargetCreated.bind(this);
|
||||
runtime.on('targetWasCreated', this._onTargetCreated);
|
||||
if (this.runtime) {
|
||||
runtime.on('targetWasCreated', this._onTargetCreated);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user