-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rubicon video playersize issue #2791
Fix rubicon video playersize issue #2791
Conversation
Rebase off master prebid
…rom the inside array
modules/rubiconBidAdapter.js
Outdated
@@ -532,7 +532,7 @@ function parseSizes(bid) { | |||
if (hasVideoMediaType(bid)) { | |||
let size = []; | |||
if (typeof utils.deepAccess(bid, 'mediaTypes.video.playerSize') !== 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are expecting an array this should be changed to check result with Array.isArray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, will add that checking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
* video player size is always doublely wrapped, need to read the size from the inside array * switch priorities and add checking for array
Type of change
Description of change
video player size is always doubly wrapped, which means it's always an array of size array, need to read size from the inside array