mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix security issues, breaking changes, and code cleanup for weather satellite PR
Co-authored-by: mitchross <6330506+mitchross@users.noreply.github.com>
This commit is contained in:
@@ -446,8 +446,17 @@ const WeatherSat = (function() {
|
||||
* Load pass predictions (with trajectory + ground track)
|
||||
*/
|
||||
async function loadPasses() {
|
||||
const storedLat = localStorage.getItem('observerLat');
|
||||
const storedLon = localStorage.getItem('observerLon');
|
||||
let storedLat, storedLon;
|
||||
|
||||
// Use ObserverLocation if available, otherwise fall back to localStorage
|
||||
if (window.ObserverLocation && ObserverLocation.isSharedEnabled()) {
|
||||
const shared = ObserverLocation.getShared();
|
||||
storedLat = shared?.lat?.toString();
|
||||
storedLon = shared?.lon?.toString();
|
||||
} else {
|
||||
storedLat = localStorage.getItem('observerLat');
|
||||
storedLon = localStorage.getItem('observerLon');
|
||||
}
|
||||
|
||||
if (!storedLat || !storedLon) {
|
||||
renderPasses([]);
|
||||
|
||||
Reference in New Issue
Block a user