shibuya
shibuya copied to clipboard
Theme reverts to default when page is reopened
Not sure if it's a feature request or issue or a config issue
Steps
- Visit https://shibuya.lepture.com/
- Change the theme to something that is not default (eg: if you are on light mode, change to dark mode and vice-versa)
- Close the page
- Reopen the page and notice that the theme is reverted (not the one you selected)
Thanks
Not sure if this is a conscious decision you made but I think the following should be stored in localStorage
not sessionStorage
?
https://github.com/lepture/shibuya/blob/c4e869220964de5bef857d26fd41d39783d6d066/static/js/theme.js#L12
Fixed in master code.