Support SSR

This commit is contained in:
Ariful Alam
2022-03-25 18:47:28 +06:00
parent 5058711985
commit c6066fd038
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ export const getInitialTheme = () => {
}
if (
typeof window !== 'undefined' &&
!(localStorage.getItem('gitprofile-theme') === null) &&
config.themeConfig.themes.includes(localStorage.getItem('gitprofile-theme'))
) {