From 6da1f475f8b52ad81180f48e416a551bf391c211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Thu, 25 Apr 2024 22:48:37 +0200 Subject: [PATCH] MEME --- assets/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index d13382d..ba00dea 100644 --- a/assets/script.js +++ b/assets/script.js @@ -635,7 +635,8 @@ async function getMemeImages() { fileList.forEach((item) => { let option = document.createElement("option"); option.value = item.ID; - option.text = `${item.Path.split("/")[-1]} - (${item.ID}) [${item.UploadedBy}]`; + let splitPath = item.Path.split("/"); + option.text = `${splitPath[splitPath.length - 1]} - (${item.ID}) [${item.UploadedBy}]`; memeImageSelector.appendChild(option); });