aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:38:41 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:38:41 +0000
commitf13770d71fd7817f7da160f5a115b86885690576 (patch)
tree41829a7202ef48d5ba6894a585713b37af138379 /priv
parent407862a4e0e10ce2a035e4e5e76e26dde849aac1 (diff)
downloadmediasync-f13770d71fd7817f7da160f5a115b86885690576.tar
mediasync-f13770d71fd7817f7da160f5a115b86885690576.tar.gz
mediasync-f13770d71fd7817f7da160f5a115b86885690576.zip
Discord activity: get updated instance room info ASAP on iframe load
Diffstat (limited to 'priv')
-rw-r--r--priv/static/discordActivity.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/priv/static/discordActivity.js b/priv/static/discordActivity.js
index 7ec4872..873bdde 100644
--- a/priv/static/discordActivity.js
+++ b/priv/static/discordActivity.js
@@ -60,6 +60,7 @@ iframe.addEventListener("load", (_) => {
const locationURL = new URL(iframe.contentWindow.location);
const locationPath = locationURL.pathname + locationURL.search;
if (locationPath === HOME_URL) {
+ updateInstanceRoomInfo();
instanceRoomInfoIntervalId = setInterval(updateInstanceRoomInfo, INSTANCE_ROOM_INFO_INTERVAL);
iframe.className = "at-home";
} else {