From f016c3ee9d90f433f8f1dd8e3bf8d224c30d0809 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Mon, 13 Oct 2025 19:03:16 -0700 Subject: [PATCH] don't show ads if in iframe --- src/client/GutterAds.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/GutterAds.ts b/src/client/GutterAds.ts index 2e5731277..f0f2f779f 100644 --- a/src/client/GutterAds.ts +++ b/src/client/GutterAds.ts @@ -1,5 +1,6 @@ import { LitElement, html } from "lit"; import { customElement, state } from "lit/decorators.js"; +import { isInIframe } from "./Utils"; const LEFT_FUSE = "gutter-ad-container-left"; const RIGHT_FUSE = "gutter-ad-container-right"; @@ -32,6 +33,11 @@ export class GutterAds extends LitElement { return; } + if (isInIframe()) { + console.log("In iframe, showing gutter ads"); + return; + } + console.log("showing GutterAds"); this.isVisible = true; this.requestUpdate();