Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store settings in localStorage #1

Closed
theblang opened this issue Oct 15, 2021 · 3 comments
Closed

Store settings in localStorage #1

theblang opened this issue Oct 15, 2021 · 3 comments

Comments

@theblang
Copy link

I leave this awesome app pinned in my browser for quickly generating test data. I find that I need to tweak the settings to only generate three sentences in order to stay below the max characters validation in the form I'm testing. It would be awesome if these settings could be persisted to localStorage to prevent having to reset them when my browser reloads the tab.

@s-kngstn
Copy link
Owner

s-kngstn commented Oct 18, 2021

Hey Matt - I just changed the input value to 3 for you. I will implement localStorage at some point. Possibly this week if I have some free time. Feel free to make a pull request if you want to work on it also.

@s-kngstn
Copy link
Owner

I had a little time this evening to set up a localStorage solution. The last used input value will remain for the users next visit. The default is still set to 3, this changes as soon as the user inputs a new number. Let me know if this solved the issue for you and I will close this issue.

@theblang
Copy link
Author

Thanks @s-kngstn ! It works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants