forked from mutability/dump1090
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Use Unique Local Variables in script.js #100
Labels
web
Stuff for the web team to look at
Comments
The underlying problem here is that localStorage is per-origin, not specific to the page. A more general fix would be to prefix the keys with the URL (or URL path). (A shim of some sort to do this automatically probably makes more sense than changing every key used) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it be possible for some or all of the Local Variables used in the script.js file for skyview978 and dump1090-fa be unique to their own webpages?
The script.js files are located in the following folders:
\usr\share\dump1090-fa\html\script.js
\usr\share\skyaware978\html\script.js
The ones I have modified for my location are the following:
MapType
SiteCirclesBaseDistance
SiteCirclesCount
SiteCirclesInterval
ZoomLvl
CenterLat
CenterLon
I appended either an _978 or _1090 to the above variables depending on the webpage. This lets me view each page without having to reset it each time I refresh it.
The text was updated successfully, but these errors were encountered: