factorio-calc
factorio-calc copied to clipboard
Persist settings between reloads
Before, each time I returned to the Factorio Calc, I had to re-enter all of my settings.
Now, when I return to the Factorio Calc, I can continue where I left off.
Demo: https://odegroot.github.io/factorio-calc/
Note
I also reformatted a file, for improved readability. This makes it look like I gave it a complete overhaul, when in fact nothing changed.
To view a diff with all of these whitespace changes hidden, add ?w=1
to the URL.
https://github.com/rubyruy/factorio-calc/pull/49/files?w=1
See also
https://github.com/rubyruy/factorio-calc/issues/16 Preserve search state and form settings in URL so it can be shared This PR does preserve settings, but not in the URL so it does not enable sending a link to someone, so this PR does not resolve that issue.
Looks good to me!