Skip to content

Commit 907ca91

Browse files
authored
Set found after renderAd call (#218)
Resolves the issue of no error when prebid global is defined but not renderAd.
1 parent 4ab2f7c commit 907ca91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderingManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export function renderLegacy(doc, adId) {
2525
w = w.parent;
2626
if (w.$$PREBID_GLOBAL$$) {
2727
try {
28-
found = true;
2928
w.$$PREBID_GLOBAL$$.renderAd(doc, adId);
29+
found = true;
3030
break;
3131
} catch (e) {
3232
continue;

0 commit comments

Comments
 (0)