Skip to content

Commit

Permalink
VOX Bid adapter, Hybrid Bid adapter: fix global var name to avoid con…
Browse files Browse the repository at this point in the history
…flicts with astraOne adapter. (prebid#6416)

Co-authored-by: Petrov Denis <d.petrov@hybrid.ai>
  • Loading branch information
2 people authored and seergiioo6 committed Mar 23, 2021
1 parent e51d1fa commit 926c6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/hybridBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function wrapAd(bid, bidData) {
parentDocument.style.width = "100%";
}
var _content = "${encodeURIComponent(JSON.stringify(bid.inImageContent))}";
window._ao_ssp.registerInImage(JSON.parse(decodeURIComponent(_content)));
window._hyb_prebid_ssp.registerInImage(JSON.parse(decodeURIComponent(_content)));
</script>
</body>
</html>`;
Expand Down
4 changes: 2 additions & 2 deletions modules/voxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function wrapInImageBanner(bid, bidData) {
var s = document.getElementById("prebidrenderer");
s.onload = function () {
var _html = "${encodeURIComponent(JSON.stringify(bid))}";
window._ao_ssp.registerInImage(JSON.parse(decodeURIComponent(_html)));
window._hyb_prebid_ssp.registerInImage(JSON.parse(decodeURIComponent(_html)));
}
s.src = "https://st.hybrid.ai/prebidrenderer.js?t=" + Date.now();
if (parent.window.frames[window.name]) {
Expand Down Expand Up @@ -157,7 +157,7 @@ function wrapBanner(bid, bidData) {
var s = document.getElementById("prebidrenderer");
s.onload = function () {
var _html = "${encodeURIComponent(JSON.stringify(bid))}";
window._ao_ssp.registerAds(JSON.parse(decodeURIComponent(_html)));
window._hyb_prebid_ssp.registerAds(JSON.parse(decodeURIComponent(_html)));
}
s.src = "https://st.hybrid.ai/prebidrenderer.js?t=" + Date.now();
</script>
Expand Down

0 comments on commit 926c6d0

Please sign in to comment.