mirror of
https://github.com/bilde2910/Hauk.git
synced 2026-01-23 02:24:09 +00:00
Only unhide altitude if config allows it
This commit is contained in:
parent
4ae423a407
commit
33e19cb886
1 changed files with 3 additions and 1 deletions
|
|
@ -799,7 +799,9 @@ function processUpdate(data, init) {
|
|||
if (lastPoint !== null && lastPoint.alt !== null && eAltitude !== null) {
|
||||
alt = lastPoint.alt * ALTITUDE_UNIT.metersMultiplier;
|
||||
eAltitude.textContent = alt.toFixed(1);
|
||||
eAltitudeContainer.classList.remove("hidden");
|
||||
if (SHOW_ALTITUDE_AMSL) {
|
||||
eAltitudeContainer.classList.remove("hidden");
|
||||
}
|
||||
} else {
|
||||
eAltitudeContainer.classList.add("hidden");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue