don't show ads if in iframe

This commit is contained in:
evanpelle
2025-10-13 19:03:16 -07:00
parent d55c145298
commit f016c3ee9d
+6
View File
@@ -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();