From 5ab12634954dabea006912efcdeb4d30992858fd Mon Sep 17 00:00:00 2001 From: Jai A Date: Tue, 12 Nov 2024 15:17:02 -0800 Subject: [PATCH] Disable app ads clicks --- apps/frontend/src/public/promo-frame.html | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/frontend/src/public/promo-frame.html b/apps/frontend/src/public/promo-frame.html index 2eace94ca..080aa8454 100644 --- a/apps/frontend/src/public/promo-frame.html +++ b/apps/frontend/src/public/promo-frame.html @@ -68,22 +68,22 @@ ]); }); - window.addEventListener( - "message", - (event) => { - if (event.data.modrinthAdClick && window.__TAURI_INTERNALS__) { - window.__TAURI_INTERNALS__.invoke("plugin:ads|record_ads_click", {}); - } - - if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) { - window.__TAURI_INTERNALS__.invoke("plugin:ads|open_link", { - path: event.data.modrinthOpenUrl, - origin: event.origin, - }); - } - }, - false, - ); + // window.addEventListener( + // "message", + // (event) => { + // if (event.data.modrinthAdClick && window.__TAURI_INTERNALS__) { + // window.__TAURI_INTERNALS__.invoke("plugin:ads|record_ads_click", {}); + // } + // + // if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) { + // window.__TAURI_INTERNALS__.invoke("plugin:ads|open_link", { + // path: event.data.modrinthOpenUrl, + // origin: event.origin, + // }); + // } + // }, + // false, + // ); window.addEventListener("mousewheel", (event) => { if (window.__TAURI_INTERNALS__) {