Skip to content

Commit

Permalink
Remove sync agree state
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Nov 27, 2024
1 parent 47b0ccd commit 2cfb637
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
17 changes: 0 additions & 17 deletions apps/frontend/src/public/promo-frame-rev-iq.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
</script>
</body>
</html>
17 changes: 0 additions & 17 deletions apps/frontend/src/public/promo-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
</script>
</body>
</html>

0 comments on commit 2cfb637

Please sign in to comment.