Commit aac3432
committed
fix: guard openInEditor when inspector is unavailable
When the component inspector is not initialized, calling openInEditor through the Vite plugin path throws because __VUE_INSPECTOR__ is missing.
Guard the call and log a clear warning instead, so DevTools does not crash in this state.
Refs #8241 parent 30e9ebc commit aac3432
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
0 commit comments