We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd2fc4 commit 665455fCopy full SHA for 665455f
src/plugins/devtool.js
@@ -1,6 +1,9 @@
1
-const devtoolHook =
2
- typeof window !== 'undefined' &&
3
- window.__VUE_DEVTOOLS_GLOBAL_HOOK__
+const target = typeof window !== 'undefined'
+ ? window
+ : typeof global !== 'undefined'
4
+ ? global
5
+ : {}
6
+const devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__
7
8
export default function devtoolPlugin (store) {
9
if (!devtoolHook) return
0 commit comments