aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-28 10:15:39 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-28 10:15:39 +0000
commite883bd2362c0117e4745876d92282235e1cc584c (patch)
tree54b47cf90255fe0041b86bad9f2a08bd3645e29f
parentbe1c517a29be2ca80a6d824d1ca0656c73cde1d3 (diff)
downloadmediasync-e883bd2362c0117e4745876d92282235e1cc584c.tar
mediasync-e883bd2362c0117e4745876d92282235e1cc584c.tar.gz
mediasync-e883bd2362c0117e4745876d92282235e1cc584c.zip
Use textContent instead of innerText to write
-rw-r--r--priv/static/discordActivity.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/static/discordActivity.js b/priv/static/discordActivity.js
index f00ec1d..9cdaaf1 100644
--- a/priv/static/discordActivity.js
+++ b/priv/static/discordActivity.js
@@ -6,7 +6,7 @@ const updateInstanceRoomInfo = () => {
const contentEl = document.getElementById("instance-room-info-content");
const defaultContents = document.createElement("i");
- defaultContents.innerText = "none yet";
+ defaultContents.textContent = "none yet";
if (!contentEl.hasChildNodes()) {
contentEl.replaceChildren(defaultContents);
}
@@ -26,7 +26,7 @@ const updateInstanceRoomInfo = () => {
const listEl = docFragment.appendChild(document.createElement("ul"));
for (const roomInfo of json) {
const item = listEl.appendChild(document.createElement("li"));
- item.innerText = roomInfo["host_username"] + " ";
+ item.textContent = roomInfo["host_username"] + " ";
const form = item.appendChild(document.createElement("form"));
form.action = roomUrl(roomInfo["room_id"]);
form.target = "activity-inner-iframe";