Skip to content

Commit

Permalink
Remove inmobi (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Nov 6, 2024
1 parent ff72c90 commit 5a21a67
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions apps/frontend/src/public/promo-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Modrinth App Ad</title>
<script
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"
async
></script>
<script src="/inmobi.js" async></script>
<script src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"></script>
<!-- <script src="/inmobi.js" async></script>-->
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
<style>
* {
Expand Down Expand Up @@ -70,6 +67,7 @@
},
]);
});

window.addEventListener(
"message",
(event) => {
Expand Down Expand Up @@ -106,20 +104,20 @@
});
});

let attempts = 0;
function syncAgreeState() {
const primaryButton = document.querySelector('[mode="primary"]');

if (primaryButton) {
primaryButton.click();
} else {
attempts++;
if (attempts < 10) {
setTimeout(syncAgreeState, 1000);
}
}
}
syncAgreeState();
// let attempts = 0;
// function syncAgreeState() {
// const primaryButton = document.querySelector('[mode="primary"]');
//
// if (primaryButton) {
// primaryButton.click();
// } else {
// attempts++;
// if (attempts < 10) {
// setTimeout(syncAgreeState, 1000);
// }
// }
// }
// syncAgreeState();
</script>
</body>
</html>

0 comments on commit 5a21a67

Please sign in to comment.