Skip to content

Commit

Permalink
fix: 馃悰 VPaids that throw in "getAdIcons"
Browse files Browse the repository at this point in the history
  • Loading branch information
rand0me committed Sep 29, 2023
1 parent ec0fae7 commit 3a2c59c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/adUnit/VpaidAdUnit.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,14 @@ class VpaidAdUnit extends VideoAdUnit {
this.creativeAd.subscribe(this[_private].handleVpaidEvt.bind(this, creativeEvt), creativeEvt);
}

if (this.creativeAd[getAdIcons] && !this.creativeAd[getAdIcons]()) {
this.icons = null;
if (this.creativeAd[getAdIcons]) {
try {
if (!this.creativeAd[getAdIcons]()) {
this.icons = null;
}
} catch (error) {
this.icons = null;
}
}

handshake(this.creativeAd, '2.0');
Expand Down

0 comments on commit 3a2c59c

Please sign in to comment.