From 347c3e769ae35c136f5e91f8133176fe7a9665f0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 28 Jan 2025 14:13:35 +0100 Subject: [PATCH] Fix variable used before creation. --- templates/_macros.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_macros.tmpl b/templates/_macros.tmpl index 5afc960..3619472 100644 --- a/templates/_macros.tmpl +++ b/templates/_macros.tmpl @@ -59,11 +59,11 @@ function taint() { el.disabled = false; }); // deactivate Booking links + let links_text = ''; Array.from(document.getElementsByClassName("disable_on_change")).forEach((el) => { links_text += el.textContent + ' '; }); const span = document.getElementById('booking_links'); - let links_text = ''; span.innerHTML = ''; const del = document.createElement("del"); span.appendChild(del); -- 2.30.2