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

feat(storage) store text in localStorage #5

Merged
merged 3 commits into from
Jul 10, 2020

Conversation

darrenjennings
Copy link
Collaborator

No description provided.

@pdesaulniers
Copy link
Member

Maybe the dropdown selection should be stored as well? If I load the page, change the snippet to "enum" and reload the page, then the "enum" snippet shows up even though "basic" is selected. I guess this is sorta confusing.

@darrenjennings
Copy link
Collaborator Author

@pdesaulniers yea I noticed that. The reason I didn't do it immediately was that it's a bit harder :))). We might want to add some routing so that url's can be shared and used as state e.g. ?selection=enum. If we can remove the XSS attack vector you could even hash the text and store that encoded in the url as well. Right now that would be dangerous.

@darrenjennings darrenjennings merged commit 607904f into master Jul 10, 2020
@darrenjennings darrenjennings deleted the feat/browser-storage branch July 10, 2020 16:38
@darrenjennings
Copy link
Collaborator Author

Merging until we can fix dropdown issues. Added #8 and #9

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

Successfully merging this pull request may close these issues.

2 participants