mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Change property name
This commit is contained in:
1 parent
19e158683d
commit
bb26277629
2 files changed
+3
-3
No files matched your search
@@ -6,8 +6,8 @@ export const getThemeValue = () => {
|
|||||||
return config.themeConfig.default;
|
return config.themeConfig.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage.hasOwnProperty('theme')) {
|
if (localStorage.hasOwnProperty('ezprofileTheme')) {
|
||||||
let theme = localStorage.getItem('theme');
|
let theme = localStorage.getItem('ezprofileTheme');
|
||||||
return theme;
|
return theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const themeSlice = createSlice({
|
|||||||
state = action.payload;
|
state = action.payload;
|
||||||
|
|
||||||
document.documentElement.setAttribute('data-theme', state);
|
document.documentElement.setAttribute('data-theme', state);
|
||||||
localStorage.setItem('theme', state);
|
localStorage.setItem('ezprofileTheme', state);
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user