Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/client/GutterAds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ export class GutterAds extends LitElement {

if (!leftContainer || !rightContainer) {
console.warn("Ad containers not found in DOM");
this.isVisible = false;
return;
}

if (!window.ramp) {
console.warn("Playwire RAMP not available");
this.isVisible = false;
return;
}

Expand Down Expand Up @@ -100,10 +102,12 @@ export class GutterAds extends LitElement {
this.rightAdType,
);
} catch (e) {
this.isVisible = false;
console.log(e);
}
});
} catch (error) {
this.isVisible = false;
console.error("Failed to load Playwire ads:", error);
}
}
Expand Down
Loading