1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

#87: include system name in export file name

This commit is contained in:
andreas
2024-11-13 15:08:27 +01:00
parent 4504b8832f
commit 7ea500bad6

View File

@@ -1071,8 +1071,12 @@
function formatDateForFilename(usePrefix, d) {
let rt = "";
if (usePrefix) {
let hdl= document.getElementById('headline');
if (hdl){
rt=hdl.textContent+"_";
}
let fwt = document.querySelector('.status-fwtype');
if (fwt) rt = fwt.textContent;
if (fwt) rt += fwt.textContent;
rt += "_";
}
if (!d) d = new Date();