File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ function connect (Vue) {
156
156
157
157
bridge . log ( 'backend ready.' )
158
158
bridge . send ( 'ready' , Vue . version )
159
- if ( SharedData . logDetected ) {
159
+ bridge . on ( 'log-detected-vue' , ( ) => {
160
160
console . log (
161
161
`%c vue-devtools %c Detected Vue v${ Vue . version } %c` ,
162
162
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff' ,
163
163
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff' ,
164
164
'background:transparent'
165
165
)
166
- }
166
+ } )
167
167
168
168
setTimeout ( ( ) => {
169
169
scan ( )
Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ function initApp (shell) {
102
102
persist : true
103
103
} )
104
104
105
+ if ( SharedData . logDetected ) {
106
+ bridge . send ( 'log-detected-vue' )
107
+ }
108
+
105
109
bridge . once ( 'ready' , version => {
106
110
store . commit (
107
111
'SHOW_MESSAGE' ,
You can’t perform that action at this time.
0 commit comments