We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 409bf14 commit d30e078Copy full SHA for d30e078
packages/@vuepress/core/lib/client/util.js
@@ -190,7 +190,7 @@ export function normalizeConfig (component, rawConfig) {
190
* @param {any} value
191
*/
192
export function setGlobalInfo (key, value) {
193
- if (!window.__VUEPRESS__ || typeof window === 'undefined') {
+ if (typeof window === 'undefined' || !window.__VUEPRESS__) {
194
return
195
}
196
window.__VUEPRESS__[key] = value
0 commit comments