FlightAware Discussions

Use Unique Local Variables in script.js

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.

Can you create a github issue for this? Issues · flightaware/dump1090 · GitHub

(Probably it makes sense to prefix the localStorage keys with the URL of the page or something like that)

Submitted, thanks for the quick response.