Rename key of localStorage's property

This commit is contained in:
MD. Ariful Alam committed 2021-10-21 02:06:33 +06:00
1 parent 2ded9a0625
commit 23f07cc8ef
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ export const getInitialTheme = () => {
return config.themeConfig.default;
}
if (localStorage.hasOwnProperty('ezprofileTheme')) {
let theme = localStorage.getItem('ezprofileTheme');
if (localStorage.hasOwnProperty('ezprofile-theme')) {
let theme = localStorage.getItem('ezprofile-theme');
return theme;
}