diff --git a/apps/frontend/src/public/promo-frame.html b/apps/frontend/src/public/promo-frame.html index 5bac9e3c0..a0d1c2ee8 100644 --- a/apps/frontend/src/public/promo-frame.html +++ b/apps/frontend/src/public/promo-frame.html @@ -136,6 +136,17 @@ origin: "https://modrinth.com", }); }); + + function syncAgreeState() { + const primaryButton = document.querySelector('[mode="primary"]'); + + if (primaryButton && primaryButton.textContent && primaryButton.textContent.includes("AGREE")) { + primaryButton.click(); + } else { + setTimeout(syncAgreeState, 100); + } + } + syncAgreeState();