mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
fix($core): window is not defined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user