From 54d6c702498885b174a0deb922eecf34904a448e Mon Sep 17 00:00:00 2001 From: Nic Limper Date: Wed, 1 Feb 2023 19:46:59 +0100 Subject: [PATCH] bugfix --- esp32_fw/data/main.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/esp32_fw/data/main.js b/esp32_fw/data/main.js index bf4c1890..c3e3881b 100644 --- a/esp32_fw/data/main.js +++ b/esp32_fw/data/main.js @@ -131,19 +131,6 @@ function updatecards() { }) } -$('#send_fw').onclick = function () { - let formData = new FormData(); - formData.append("dst", $("#dstmac").value); - formData.append("filename", $("#fwfile").value); - fetch("/send_fw", { - method: "POST", - body: formData - }) - .then(response => response.text()) - .then(data => showMessage(data)) - .catch(error => showMessage('Error: ' + error)); -} - $('#clearlog').onclick = function () { $('#messages').innerHTML=''; }