We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5710bc2 commit f858a5dCopy full SHA for f858a5d
src/index.js
@@ -29,8 +29,13 @@ export default Vue
29
30
// devtools global hook
31
/* istanbul ignore if */
32
-if (process.env.NODE_ENV !== 'production') {
33
- if (inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
+if (process.env.NODE_ENV !== 'production' && inBrowser) {
+ if (window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
34
window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit('init', Vue)
35
+ } else if (/Chrome\/\d+/.test(navigator.userAgent)) {
36
+ console.log(
37
+ 'Download the Vue Devtools for a better development experience:\n' +
38
+ 'https://github.com/vuejs/vue-devtools'
39
+ )
40
}
41
0 commit comments