From cfe1e5c0ccc37dec90edb94d6fe700ae6b01e571 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Tue, 26 Mar 2024 10:21:38 +0100 Subject: [PATCH] move async-await chain downwards --- Webserver/src/routes/clock/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index 340c4a5..2ad4be9 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -74,7 +74,7 @@ return 50 + radius * relative; } - async function update() { + function update() { // Get current datetime and date const current = new Date(Date.now()); const day = new Date(current.toDateString()); @@ -107,7 +107,7 @@ } }; // If enabled, update clock display - if (clockEnabled) await displayMatrixClock(); + if (clockEnabled) displayMatrixClock(); } // Converts the x and y values from percentage to matrix coordinates