Skip to content

Persist OCAD map file in localstorage between sessions #46

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

perliedman
Copy link
Owner

@perliedman perliedman commented Feb 23, 2025

This is an experiment with storing the last used OCAD map in local storage, so the user will not have to find the map on disk every time they return to the app.

From some quick experiments, it looks like this works, but I'm not sure if the maps are really too big to expect local storage to hold them (MDN says 5-10 MB, which seems to be close to what normal size OCAD maps are, in my experience).

Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
o-scout ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2025 11:56am

@perliedman
Copy link
Owner Author

perliedman commented Feb 23, 2025

Update: well, it didn't take long to find a map that was too large. For now, I have added some handling for this (app works like it did before). We can think about if this is still a nice feature for smaller maps, or if it's just confusing that the map is sometime saved and sometimes not. (It is nice when developing the app though...)

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.

1 participant