From ef667f16ef26588320e8157078b5bc1ac32adae2 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Fri, 2 Aug 2024 00:41:06 +0530 Subject: Discord activity - show video filename --- priv/static/discordActivity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'priv') diff --git a/priv/static/discordActivity.js b/priv/static/discordActivity.js index 9cdaaf1..ad7a6c3 100644 --- a/priv/static/discordActivity.js +++ b/priv/static/discordActivity.js @@ -26,7 +26,9 @@ const updateInstanceRoomInfo = () => { const listEl = docFragment.appendChild(document.createElement("ul")); for (const roomInfo of json) { const item = listEl.appendChild(document.createElement("li")); - item.textContent = roomInfo["host_username"] + " "; + item.textContent = roomInfo["host_username"] + " — "; + const filename = item.appendChild(document.createElement("code")); + filename.textContent = roomInfo["filename"] + " "; const form = item.appendChild(document.createElement("form")); form.action = roomUrl(roomInfo["room_id"]); form.target = "activity-inner-iframe"; -- cgit v1.2.3-57-g22cb