Skip to content

Commit

Permalink
Use cross-browser integer check (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and Matt Kendall committed Jan 23, 2018
1 parent e39c58e commit 8b23ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ exports.checkBidRequestSizes = (adUnits) => {
if (mediaTypes && mediaTypes.video) {
const video = mediaTypes.video;
if (video.playerSize) {
if (Array.isArray(video.playerSize) && video.playerSize.length === 2 && Number.isInteger(video.playerSize[0]) && Number.isInteger(video.playerSize[1])) {
if (Array.isArray(video.playerSize) && video.playerSize.length === 2 && utils.isInteger(video.playerSize[0]) && utils.isInteger(video.playerSize[1])) {
adUnit.sizes = video.playerSize;
} else {
utils.logError('Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [640, 480]. Removing invalid mediaTypes.video.playerSize property from request.');
Expand Down

0 comments on commit 8b23ca1

Please sign in to comment.