1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

#10: use the system name as page headline and title

This commit is contained in:
wellenvogel
2021-12-02 17:52:51 +01:00
parent c837d9b028
commit b01dabf8cc
2 changed files with 7 additions and 1 deletions

View File

@@ -98,6 +98,12 @@ function resetForm(ev) {
el.dispatchEvent(changeEvent);
}
}
let name=jsonData.systemName;
if (name){
let el=document.getElementById('headline');
if (el) el.textContent=name;
document.title=name;
}
});
}
function checkMaxClients(v) {