Skip to content

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.

2 participants