Skip to content

Commit

Permalink
Set found after renderAd call (#218)
Browse files Browse the repository at this point in the history
Resolves the issue of no error when prebid global is defined but not renderAd.
  • Loading branch information
Sir-Will authored Oct 3, 2024
1 parent 4ab2f7c commit 907ca91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function renderLegacy(doc, adId) {
w = w.parent;
if (w.$$PREBID_GLOBAL$$) {
try {
found = true;
w.$$PREBID_GLOBAL$$.renderAd(doc, adId);
found = true;
break;
} catch (e) {
continue;
Expand Down

0 comments on commit 907ca91

Please sign in to comment.