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

Honor User Settings #10

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open

Conversation

leviwilson
Copy link

Description

When the page is reloaded, though the data is in localStorage, it didn't honor which style was selected. I've modified it so that on page load it will load your last selected style.

Additionally I've added the internalScale as a saved setting as well that is honored when your page reloads.

It still has an issue when you first save a new style from the dialog (you have to do it twice before it re-paints?) but I can look at that later.

No clue why I have to add the setTimeout 0 that reloads the markup again
and draws; but it doesn't work without it ¯\_(ツ)_/¯.
Added the notion of default values for settings so we an have a null
object pattern for localStorage.getItem.
@apcj
Copy link
Owner

apcj commented May 12, 2016

Hi @leviwilson I'm really sorry for having missed this PR - it must have got buried under a massive pile of github notifications! I don't have a laptop available at the moment, but will hopefully look at this in about 3 weeks time.

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.

None yet

2 participants