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 proofs in local storage #8

Open
io12 opened this issue Jun 11, 2020 · 1 comment
Open

Store proofs in local storage #8

io12 opened this issue Jun 11, 2020 · 1 comment

Comments

@io12
Copy link
Contributor

io12 commented Jun 11, 2020

(So people don't accidentally delete proofs on refresh or closing the tab)

@aweinstock314
Copy link
Member

Reposting from slack:

It looks like 
https://docs.rs/web-sys/0.3.36/web_sys/struct.Window.html#method.local_storage 
would be a good way to get access to the local storage object. The end of
ProofWidget::update would be a good place to save the xml for the current proof
(if ret is true, a modification has just occurred). For loading from local
storage, a few intertwined things in App::{update,view} would need to change.

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

No branches or pull requests

2 participants