From b9184a7c041c16dbc1adb601f4834fc0152e413b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 26 Apr 2024 14:56:40 +0200 Subject: [PATCH] Rewrite some stuff --- assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index a51f549..d901fca 100644 --- a/assets/script.js +++ b/assets/script.js @@ -107,7 +107,7 @@ async function displayList(data, elementId, deleteFunction) { if ("function" === typeof deleteFunction) { const th = document.createElement("th"); let deleteBtn = document.createElement('i'); - deleteBtn.classList[0] = "ri-delete-bin-line"; + deleteBtn.classList = ["ri-delete-bin-line"]; th.appendChild(deleteBtn); headerRow.appendChild(th); }