mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Rename key of localStorage's property
This commit is contained in:
1 parent
2ded9a0625
commit
23f07cc8ef
2 files changed
+3
-3
No files matched your search
@@ -12,7 +12,7 @@ const ThemeChanger = () => {
|
||||
const changeTheme = (e, selectedTheme) => {
|
||||
e.preventDefault();
|
||||
document.querySelector('html').setAttribute('data-theme', selectedTheme);
|
||||
localStorage.setItem('ezprofileTheme', selectedTheme);
|
||||
localStorage.setItem('ezprofile-theme', selectedTheme);
|
||||
|
||||
setTheme(selectedTheme);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user