From 8b23ca1fe3b5a7b26708084f4d8b3d98115cd150 Mon Sep 17 00:00:00 2001 From: Matt Lane Date: Tue, 23 Jan 2018 13:57:20 -0800 Subject: [PATCH] Use cross-browser integer check (#2058) --- src/adaptermanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adaptermanager.js b/src/adaptermanager.js index 5577ffc6fca..b4a874a0736 100644 --- a/src/adaptermanager.js +++ b/src/adaptermanager.js @@ -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.');