fix: Initial-Bezeichnung für KÜ "---" entfernt

This commit is contained in:
ISA
2024-11-14 07:14:26 +01:00
parent 1420569a59
commit 81076559a6
2 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
const firmwareUpdate = (slot) => {
const url = `${window.location.origin}/CPL?/kabelueberwachung.html&KSU${slot}=1`;
fetch(url, { method: "GET" })
.then((response) => {
if (response.ok) {
alert(`Update an ${slot + 1} erfolgreich gestartet!`);
} else {
alert("Fehler beim Update!");
}
})
.catch((error) => {
console.error("Fehler:", error);
alert("Fehler beim Update!");
});
};
export default firmwareUpdate;