Fix JS syntax error: duplicate q.appendChild block
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.
This commit is contained in:
parent
b9c8c066ec
commit
c2a593de78
@ -650,8 +650,6 @@
|
||||
}
|
||||
q.appendChild(div);
|
||||
});
|
||||
q.appendChild(div);
|
||||
});
|
||||
|
||||
q.querySelectorAll(".remove").forEach(btn => {
|
||||
btn.addEventListener("click", () => removeFromQueue(parseInt(btn.dataset.idx)));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user