Skip to content

Commit

Permalink
fix: double disable vue-inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 16, 2023
1 parent 5162bdd commit 9dc0694
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/devtools/src/runtime/plugins/view/Frame.vue
Expand Up @@ -139,6 +139,9 @@ function enableComponentInspector() {
}
function disableComponentInspector() {
if (!window.__VUE_INSPECTOR__?.enabled)
return
window.__VUE_INSPECTOR__?.disable()
props.client?.hooks.callHook('host:inspector:close')
if (viewMode.value === 'component-inspector')
Expand Down

0 comments on commit 9dc0694

Please sign in to comment.