Skip to content

Commit e79e948

Browse files
committed
fix: revert #893
1 parent def28f9 commit e79e948

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/overlay/src/App.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,7 @@ const vueInspectorEnabled = computed(() => {
8484
return !!vueInspector.value
8585
})
8686
87-
function toggleVueInspector() {
88-
if (vueInspectorEnabled.value) {
89-
vueInspector.value?.disable()
90-
return
91-
}
92-
87+
function enableVueInspector() {
9388
vueInspector.value.enable()
9489
}
9590
@@ -134,7 +129,7 @@ const { iframe, getIframe } = useIframe(clientUrl, async () => {
134129
class="vue-devtools__anchor-btn vue-devtools__panel-content vue-devtools__inspector-button"
135130
title="Toggle Component Inspector"
136131
:class="{ active: vueInspectorEnabled }"
137-
@click="toggleVueInspector"
132+
@click="enableVueInspector"
138133
>
139134
<svg
140135
xmlns="http://www.w3.org/2000/svg" style="height: 1.1em; width: 1.1em; opacity:0.5;"

0 commit comments

Comments
 (0)