Adding a new runtime event for peripheral disconnects that are intentional.
This commit is contained in:
1 parent
6adabe3647
commit
d72d2c5de2
1 file changed
+2
-2
@@ -230,7 +230,7 @@ class Blocks extends React.Component {
|
||||
this.props.vm.addListener('EXTENSION_ADDED', this.handleExtensionAdded);
|
||||
this.props.vm.addListener('BLOCKSINFO_UPDATE', this.handleBlocksInfoUpdate);
|
||||
this.props.vm.addListener('PERIPHERAL_CONNECTED', this.handleStatusButtonUpdate);
|
||||
this.props.vm.addListener('PERIPHERAL_DISCONNECT_ERROR', this.handleStatusButtonUpdate);
|
||||
this.props.vm.addListener('PERIPHERAL_DISCONNECT', this.handleStatusButtonUpdate);
|
||||
}
|
||||
detachVM () {
|
||||
this.props.vm.removeListener('SCRIPT_GLOW_ON', this.onScriptGlowOn);
|
||||
@@ -243,7 +243,7 @@ class Blocks extends React.Component {
|
||||
this.props.vm.removeListener('EXTENSION_ADDED', this.handleExtensionAdded);
|
||||
this.props.vm.removeListener('BLOCKSINFO_UPDATE', this.handleBlocksInfoUpdate);
|
||||
this.props.vm.removeListener('PERIPHERAL_CONNECTED', this.handleStatusButtonUpdate);
|
||||
this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.handleStatusButtonUpdate);
|
||||
this.props.vm.removeListener('PERIPHERAL_DISCONNECT', this.handleStatusButtonUpdate);
|
||||
}
|
||||
|
||||
updateToolboxBlockValue (id, value) {
|
||||
|
||||
Reference in new issue
Block a user