mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 07:10:00 -07:00
Fix weather sat handoff: remove defunct METEOR-M2, fire change event
- Remove 'METEOR-M2' (NORAD 40069) from WEATHER_SAT_KEYS — it has no entry in WEATHER_SATELLITES and no dropdown option, so the Capture button was silently scheduling against the wrong satellite - Dispatch a 'change' event after setting satSelect.value in preSelect() and startPass() so any UI listeners (frequency display, mode info) update correctly when the satellite is set programmatically Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -332,7 +332,10 @@ const WeatherSat = (function() {
|
||||
*/
|
||||
function preSelect(satellite) {
|
||||
const satSelect = document.getElementById('weatherSatSelect');
|
||||
if (satSelect) satSelect.value = satellite;
|
||||
if (satSelect) {
|
||||
satSelect.value = satellite;
|
||||
satSelect.dispatchEvent(new Event('change'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -342,6 +345,7 @@ const WeatherSat = (function() {
|
||||
const satSelect = document.getElementById('weatherSatSelect');
|
||||
if (satSelect) {
|
||||
satSelect.value = satellite;
|
||||
satSelect.dispatchEvent(new Event('change'));
|
||||
}
|
||||
start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user