Skip to content

Commit d30e078

Browse files
committed
fix($core): window is not defined
1 parent 409bf14 commit d30e078

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/client

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/client/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function normalizeConfig (component, rawConfig) {
190190
* @param {any} value
191191
*/
192192
export function setGlobalInfo (key, value) {
193-
if (!window.__VUEPRESS__ || typeof window === 'undefined') {
193+
if (typeof window === 'undefined' || !window.__VUEPRESS__) {
194194
return
195195
}
196196
window.__VUEPRESS__[key] = value

0 commit comments

Comments
 (0)