mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Fix getInitialTheme method to get theme from localStorage
This commit is contained in:
@@ -9,7 +9,7 @@ export const getInitialTheme = () => {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!(localStorage.getItem('gitprofile-theme') === null) &&
|
!(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');
|
let theme = localStorage.getItem('gitprofile-theme');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user