From 44ec2ebbd4f8499cd8343e746588775718f68c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sajn=C3=B3g?= Date: Tue, 30 Jan 2018 13:37:20 +0100 Subject: [PATCH] Fix initEnv, so it doesn't crash on page refresh --- src/devtools/env.js | 2 ++ 1 file changed, 2 insertions(+) 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 },