Skip to content

Commit 8902e51

Browse files
author
Guillaume Chau
authored
New instance-selected bridge event (Fix regression from #542) (#549)
1 parent 117ee66 commit 8902e51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/backend/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function connect () {
5858
const instance = instanceMap.get(id)
5959
bindToConsole(instance)
6060
flush()
61+
bridge.send('instance-selected')
6162
})
6263

6364
bridge.on('scroll-to-instance', id => {

src/devtools/views/components/ComponentTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default {
138138
},
139139
140140
mounted () {
141-
bridge.on('instance-details', () => {
141+
bridge.on('instance-selected', () => {
142142
this.setSelecting(false)
143143
})
144144
},

0 commit comments

Comments
 (0)