Skip to content

Commit

Permalink
fix($core): window is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 3, 2019
1 parent 409bf14 commit d30e078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/client/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function normalizeConfig (component, rawConfig) {
* @param {any} value
*/
export function setGlobalInfo (key, value) {
if (!window.__VUEPRESS__ || typeof window === 'undefined') {
if (typeof window === 'undefined' || !window.__VUEPRESS__) {
return
}
window.__VUEPRESS__[key] = value
Expand Down

0 comments on commit d30e078

Please sign in to comment.