diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-27 15:38:41 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-27 15:38:41 +0000 |
commit | f13770d71fd7817f7da160f5a115b86885690576 (patch) | |
tree | 41829a7202ef48d5ba6894a585713b37af138379 /priv/static/discordActivity.js | |
parent | 407862a4e0e10ce2a035e4e5e76e26dde849aac1 (diff) | |
download | mediasync-f13770d71fd7817f7da160f5a115b86885690576.tar mediasync-f13770d71fd7817f7da160f5a115b86885690576.tar.gz mediasync-f13770d71fd7817f7da160f5a115b86885690576.zip |
Discord activity: get updated instance room info ASAP on iframe load
Diffstat (limited to 'priv/static/discordActivity.js')
-rw-r--r-- | priv/static/discordActivity.js | 1 |
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 { |