Skip to content

Commit

Permalink
fixing getintent to use utils.isInteger to fix browserstack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich committed Apr 30, 2018
1 parent 603f5f0 commit 77d0e06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/getintentBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { registerBidder } from 'src/adapters/bidderFactory';
import { isInteger } from 'src/utils';

const BIDDER_CODE = 'getintent';
const IS_NET_REVENUE = true;
Expand Down Expand Up @@ -142,7 +143,7 @@ function parseSize(s) {
* */
function produceSize (sizes) {
function sizeToStr(s) {
if (Array.isArray(s) && s.length === 2 && Number.isInteger(s[0]) && Number.isInteger(s[1])) {
if (Array.isArray(s) && s.length === 2 && isInteger(s[0]) && isInteger(s[1])) {
return s.join('x');
} else {
throw "Malformed parameter 'sizes'";
Expand Down

0 comments on commit 77d0e06

Please sign in to comment.