diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-08-01 19:11:06 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-08-01 19:13:05 +0000 |
commit | ef667f16ef26588320e8157078b5bc1ac32adae2 (patch) | |
tree | 91a94f33dccaee04388086f00e4f2fce9d098ac9 /priv/static/discordActivity.js | |
parent | 37db2ef91cb806a6ddd123bf7c1974d00699b86a (diff) | |
download | mediasync-discord-activity.tar mediasync-discord-activity.tar.gz mediasync-discord-activity.zip |
Discord activity - show video filenamediscord-activity
Diffstat (limited to 'priv/static/discordActivity.js')
-rw-r--r-- | priv/static/discordActivity.js | 4 |
1 files changed, 3 insertions, 1 deletions
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"; |