Skip to content

Commit

Permalink
Must not apply a renderer if media type is not 'video'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Kovtun committed Dec 2, 2019
1 parent dcf904b commit 2135d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/adformBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const spec = {
mediaType: type
};

if (!bid.renderer && utils.deepAccess(bid, 'mediaTypes.video.context') === 'outstream') {
if (!bid.renderer && type === VIDEO && utils.deepAccess(bid, 'mediaTypes.video.context') === 'outstream') {
bidObject.renderer = Renderer.install({id: bid.bidId, url: OUTSTREAM_RENDERER_URL});
bidObject.renderer.setRender(renderer);
}
Expand Down

0 comments on commit 2135d50

Please sign in to comment.