From f13770d71fd7817f7da160f5a115b86885690576 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 27 Jul 2024 21:08:41 +0530 Subject: Discord activity: get updated instance room info ASAP on iframe load --- priv/static/discordActivity.js | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3-57-g22cb