mui-theme-creator icon indicating copy to clipboard operation
mui-theme-creator copied to clipboard

User Doesn't allow localStorage

Open bossinfo opened this issue 4 years ago • 1 comments

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

bossinfo avatar Aug 26 '20 22:08 bossinfo

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

bareynol avatar Aug 27 '20 13:08 bareynol