From 441ca19578cff823c602333f9a834746da200f77 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 13 Jan 2025 10:44:20 +0100 Subject: [PATCH] repaired js after merge --- src/Python/flask/web/static/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Python/flask/web/static/script.js b/src/Python/flask/web/static/script.js index edb62fc..39d7c4f 100644 --- a/src/Python/flask/web/static/script.js +++ b/src/Python/flask/web/static/script.js @@ -34,7 +34,8 @@ document.addEventListener("DOMContentLoaded", function() { } } - // Parse the data and show it on the website + // Parse the data and show it on the website + async function parseData() { const data = await fetchData(); const sensorDataContainer = document.getElementById("sensor-data"); sensorDataContainer.innerHTML = ""; // Clear previous data @@ -57,5 +58,4 @@ document.addEventListener("DOMContentLoaded", function() { // Update the image every 200 milliseconds setInterval(updateImage, 100); -}); - +}); \ No newline at end of file