From c2a593de7881d5d123b0044559cc8f225d7b429e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastjan=20Arti=C4=8D?= Date: Thu, 30 Apr 2026 15:14:09 +0000 Subject: [PATCH] Fix JS syntax error: duplicate q.appendChild block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: previous str_replace introduced duplicate '});' lines after file queue rendering. Caused 'Unexpected token )' parse error, which broke ALL JS — addFilesToQueue was undefined → upload didn't work. User feedback: 'ne dela upload' Verified with: node -c on extracted script — passes now. --- templates/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 52a08f7..342b9a3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -650,8 +650,6 @@ } q.appendChild(div); }); - q.appendChild(div); - }); q.querySelectorAll(".remove").forEach(btn => { btn.addEventListener("click", () => removeFromQueue(parseInt(btn.dataset.idx)));