Skip to content

Commit e682c36

Browse files
michalsnikGuillaume Chau
authored and
Guillaume Chau
committed
Fix initEnv, so it doesn't crash on page refresh (#590)
1 parent 6ea4240 commit e682c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/devtools/env.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export const keys = {
1212
}
1313

1414
export function initEnv (Vue) {
15+
if (Vue.prototype.hasOwnProperty('$isChrome')) return
16+
1517
Object.defineProperties(Vue.prototype, {
1618
'$isChrome': { get: () => isChrome },
1719
'$isWindows': { get: () => isWindows },

0 commit comments

Comments
 (0)