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();