diff --git a/src/backend/index.js b/src/backend/index.js
index 12c57b5ac0..ec21e4bd07 100644
--- a/src/backend/index.js
+++ b/src/backend/index.js
@@ -153,12 +153,14 @@ function connect (Vue) {
bridge.log('backend ready.')
bridge.send('ready', Vue.version)
- 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'
- )
+ if (SharedData.logDetected) {
+ 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/views/settings/GlobalPreferences.vue b/src/devtools/views/settings/GlobalPreferences.vue
index d2e8b65021..e15ba6ff89 100644
--- a/src/devtools/views/settings/GlobalPreferences.vue
+++ b/src/devtools/views/settings/GlobalPreferences.vue
@@ -67,6 +67,15 @@
Enable (may print warnings)
+
+
+
+ Display in browser console
+
+
diff --git a/src/shared-data.js b/src/shared-data.js
index e6aa8928ff..5460f0a280 100644
--- a/src/shared-data.js
+++ b/src/shared-data.js
@@ -11,7 +11,8 @@ const internalSharedData = {
cacheVuexSnapshotsLimit: 10,
snapshotLoading: null,
recordPerf: false,
- editableProps: false
+ editableProps: false,
+ logDetected: true
}
const persisted = [
@@ -19,7 +20,8 @@ const persisted = [
'theme',
'displayDensity',
'recordVuex',
- 'editableProps'
+ 'editableProps',
+ 'logDetected'
]
// ---- INTERNALS ---- //