Skip to content

Commit 4c3abdd

Browse files
committed
avoid showing chrome devtools message in Edge
1 parent 8a7b02a commit 4c3abdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/entries/web-runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import Vue from 'core/index'
44
import config from 'core/config'
55
import { extend, noop } from 'shared/util'
6-
import { devtools, inBrowser } from 'core/util/index'
6+
import { devtools, inBrowser, isEdge } from 'core/util/index'
77
import { patch } from 'web/runtime/patch'
88
import platformDirectives from 'web/runtime/directives/index'
99
import platformComponents from 'web/runtime/components/index'
@@ -45,7 +45,7 @@ setTimeout(() => {
4545
devtools.emit('init', Vue)
4646
} else if (
4747
process.env.NODE_ENV !== 'production' &&
48-
inBrowser && /Chrome\/\d+/.test(window.navigator.userAgent)
48+
inBrowser && !isEdge && /Chrome\/\d+/.test(window.navigator.userAgent)
4949
) {
5050
console.log(
5151
'Download the Vue Devtools for a better development experience:\n' +

0 commit comments

Comments
 (0)