File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,14 @@ function connect (Vue) {
153
153
154
154
bridge . log ( 'backend ready.' )
155
155
bridge . send ( 'ready' , Vue . version )
156
- console . log (
157
- `%c vue-devtools %c Detected Vue v${ Vue . version } %c` ,
158
- 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff' ,
159
- 'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff' ,
160
- 'background:transparent'
161
- )
156
+ if ( SharedData . logDetected ) {
157
+ console . log (
158
+ `%c vue-devtools %c Detected Vue v${ Vue . version } %c` ,
159
+ 'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff' ,
160
+ 'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff' ,
161
+ 'background:transparent'
162
+ )
163
+ }
162
164
163
165
setTimeout ( ( ) => {
164
166
scan ( )
Original file line number Diff line number Diff line change 67
67
Enable <span class =" dim" >(may print warnings)</span >
68
68
</VueSwitch >
69
69
</VueFormField >
70
+
71
+ <VueFormField title =" Detected Vue message" >
72
+ <VueSwitch
73
+ :value =" $shared.logDetected"
74
+ @input =" $shared.logDetected = $event"
75
+ >
76
+ Display in browser console
77
+ </VueSwitch >
78
+ </VueFormField >
70
79
</div >
71
80
</template >
72
81
Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ const internalSharedData = {
11
11
cacheVuexSnapshotsLimit : 10 ,
12
12
snapshotLoading : null ,
13
13
recordPerf : false ,
14
- editableProps : false
14
+ editableProps : false ,
15
+ logDetected : true
15
16
}
16
17
17
18
const persisted = [
18
19
'classifyComponents' ,
19
20
'theme' ,
20
21
'displayDensity' ,
21
22
'recordVuex' ,
22
- 'editableProps'
23
+ 'editableProps' ,
24
+ 'logDetected'
23
25
]
24
26
25
27
// ---- INTERNALS ---- //
You can’t perform that action at this time.
0 commit comments