Skip to content

Commit

Permalink
fix(overlay): change panel visible on toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jun 16, 2024
1 parent 7759471 commit 3cb8d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/overlay/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const vueInspector = ref()
onDevToolsConnected(() => {
const rpcServer = getRpcServer<typeof functions>()
rpcServer.broadcast.on('toggle-panel', (state = !panelVisible) => {
togglePanelVisible(state)
rpcServer.functions.on('toggle-panel', (state = !panelVisible) => {
togglePanelVisible(undefined, state)
})
devtools.ctx.api.getVueInspector().then((inspector) => {
vueInspector.value = inspector
Expand Down

0 comments on commit 3cb8d0b

Please sign in to comment.