mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Support SSR
This commit is contained in:
1 parent
5058711985
commit
c6066fd038
2 files changed
+4
-1
No files matched your search
@@ -8,6 +8,7 @@ export const getInitialTheme = () => {
|
||||
}
|
||||
|
||||
if (
|
||||
typeof window !== 'undefined' &&
|
||||
!(localStorage.getItem('gitprofile-theme') === null) &&
|
||||
config.themeConfig.themes.includes(localStorage.getItem('gitprofile-theme'))
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user