aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";