From 2cfb637451441e5bd51dbfb736598ee33b7e8323 Mon Sep 17 00:00:00 2001 From: Jai A Date: Wed, 27 Nov 2024 13:17:01 -0700 Subject: [PATCH] Remove sync agree state --- .../frontend/src/public/promo-frame-rev-iq.html | 17 ----------------- apps/frontend/src/public/promo-frame.html | 17 ----------------- 2 files changed, 34 deletions(-) diff --git a/apps/frontend/src/public/promo-frame-rev-iq.html b/apps/frontend/src/public/promo-frame-rev-iq.html index daa2bd8de..f4d142e7e 100644 --- a/apps/frontend/src/public/promo-frame-rev-iq.html +++ b/apps/frontend/src/public/promo-frame-rev-iq.html @@ -79,23 +79,6 @@ origin: "https://modrinth.com", }); }); - - let attempts = 0; - function syncAgreeState() { - const primaryButton = document.querySelector( - ".qc-cmp2-summary-buttons button:last-of-type", - ); - - if (primaryButton) { - primaryButton.click(); - } else { - attempts++; - if (attempts < 10) { - setTimeout(syncAgreeState, 1000); - } - } - } - syncAgreeState(); diff --git a/apps/frontend/src/public/promo-frame.html b/apps/frontend/src/public/promo-frame.html index 080aa8454..43adfb776 100644 --- a/apps/frontend/src/public/promo-frame.html +++ b/apps/frontend/src/public/promo-frame.html @@ -103,23 +103,6 @@ origin: "https://modrinth.com", }); }); - - let attempts = 0; - function syncAgreeState() { - const primaryButton = document.querySelector( - ".qc-cmp2-summary-buttons button:last-of-type", - ); - - if (primaryButton) { - primaryButton.click(); - } else { - attempts++; - if (attempts < 10) { - setTimeout(syncAgreeState, 1000); - } - } - } - syncAgreeState();