diff --git a/src/devtools/env.js b/src/devtools/env.js index a67fb2a6f..226e96ec8 100644 --- a/src/devtools/env.js +++ b/src/devtools/env.js @@ -12,6 +12,8 @@ export const keys = { } export function initEnv (Vue) { + if (Vue.prototype.hasOwnProperty('$isChrome')) return + Object.defineProperties(Vue.prototype, { '$isChrome': { get: () => isChrome }, '$isWindows': { get: () => isWindows },