mui-theme-creator
mui-theme-creator copied to clipboard
User Doesn't allow localStorage
Just a question... Where does the theme can't write to localStorage for whatever reason? Will it then be saved on a backend database so it can be retrieved when they come back to the website? You can't really make it a requirement if their company policy says otherwise.
Thanks in advance
Hey thanks for the input, I hadn't considered company policies disallowing local storage on the browser.
As of right now, a backend database holding user data is outside of the scope of this project, so I have no current plans for something like that. Unfortunately this means that anyone with no access to local storage won't be able to save themes, and they'll be wiped on refresh.
That being said, I've now (thanks to your input) tested the app with local storage disabled on Chrome, and found that it doesn't crash the app, only preventing it from saving and rehydrating the theme data.
I'll add a component that detects if local storage is disabled, and if so, adds a note to the Saved Themes tab notifying the user that their themes will not be saved