Browse Source

fix(runtime): DevTools recommendation shows for all browsers (#8638)

Close #8634
dev
Alejandro Maguey 6 years ago
committed by Evan You
parent
commit
22ad266151
  1. 5
      src/platforms/web/runtime/index.js

5
src/platforms/web/runtime/index.js

@ -4,7 +4,7 @@ import Vue from 'core/index'
import config from 'core/config' import config from 'core/config'
import { extend, noop } from 'shared/util' import { extend, noop } from 'shared/util'
import { mountComponent } from 'core/instance/lifecycle' import { mountComponent } from 'core/instance/lifecycle'
import { devtools, inBrowser, isChrome } from 'core/util/index' import { devtools, inBrowser } from 'core/util/index'
import { import {
query, query,
@ -51,8 +51,7 @@ if (inBrowser) {
devtools.emit('init', Vue) devtools.emit('init', Vue)
} else if ( } else if (
process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'production' &&
process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'test'
isChrome
) { ) {
console[console.info ? 'info' : 'log']( console[console.info ? 'info' : 'log'](
'Download the Vue Devtools extension for a better development experience:\n' + 'Download the Vue Devtools extension for a better development experience:\n' +

Loading…
Cancel
Save