Skip to content

Commit 939d9e5

Browse files
Guillaume Chauiksim
authored andcommitted
fix: disabling detected vue log, closes vuejs#924
1 parent e651196 commit 939d9e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/backend/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ function connect (Vue) {
156156

157157
bridge.log('backend ready.')
158158
bridge.send('ready', Vue.version)
159-
if (SharedData.logDetected) {
159+
bridge.on('log-detected-vue', () => {
160160
console.log(
161161
`%c vue-devtools %c Detected Vue v${Vue.version} %c`,
162162
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
163163
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
164164
'background:transparent'
165165
)
166-
}
166+
})
167167

168168
setTimeout(() => {
169169
scan()

src/devtools/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ function initApp (shell) {
102102
persist: true
103103
})
104104

105+
if (SharedData.logDetected) {
106+
bridge.send('log-detected-vue')
107+
}
108+
105109
bridge.once('ready', version => {
106110
store.commit(
107111
'SHOW_MESSAGE',

0 commit comments

Comments
 (0)