diff --git a/src/backend/index.js b/src/backend/index.js index a21c810d6..82f048da9 100644 --- a/src/backend/index.js +++ b/src/backend/index.js @@ -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() diff --git a/src/devtools/index.js b/src/devtools/index.js index 3d5c74636..1e7330eb9 100644 --- a/src/devtools/index.js +++ b/src/devtools/index.js @@ -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',