Skip to content

Commit

Permalink
fix: disabling detected vue log, closes #924
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Mar 26, 2019
1 parent b86d317 commit 7bf9bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ function connect (Vue) {

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

setTimeout(() => {
scan()
Expand Down
4 changes: 4 additions & 0 deletions src/devtools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ function initApp (shell) {
persist: true
})

if (SharedData.logDetected) {
bridge.send('log-detected-vue')
}

bridge.once('ready', version => {
store.commit(
'SHOW_MESSAGE',
Expand Down

0 comments on commit 7bf9bad

Please sign in to comment.