Fix getInitialTheme method to get theme from localStorage
This commit is contained in:
parent
da281dfc80
commit
f409069210
@ -9,7 +9,7 @@ export const getInitialTheme = () => {
|
||||
|
||||
if (
|
||||
!(localStorage.getItem('gitprofile-theme') === null) &&
|
||||
config.themeConfig.themes.includes('gitprofile-theme')
|
||||
config.themeConfig.themes.includes(localStorage.getItem('gitprofile-theme'))
|
||||
) {
|
||||
let theme = localStorage.getItem('gitprofile-theme');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user