qconrad / intellistar-emulator

A web application that displays weather information in the same visual presentation as the cable headend unit Intellistar.
https://qconrad.github.io/intellistar-emulator/
MIT License
89 stars 66 forks source link

fix: loop and local storage fixes #49

Closed pooh-bear closed 3 months ago

pooh-bear commented 4 months ago

This PR resolves a regression caused from PR #44 that causes the looping feature to break, throwing a Please enter a postal code error.

image

Description of fix Config values were being set on each start, however the form isn't filled in on a loop refresh and "wipes" any previous values. Furthermore, the new validation assumes that values are from the form, not from localStorage. Checks are added if the application is in a loop state (from localStorage).

This PR implements logic to handle loops for config validation & setting to localStorage.

How to test

Halloween20 commented 4 months ago

i Need the narrations on this website