Support SSR

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

No files matched your search

+1
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'))
) {