Skip to content

Commit

Permalink
Update collectcentBidAdapter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devcollectcent authored Dec 11, 2018
1 parent 04c3ceb commit 76ddb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/collectcentBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const spec = {
};

const placements = [];
const location = new URL(bidderRequest.refererInfo.referer);
const location = bidderRequest ? new URL(bidderRequest.refererInfo.referer) : winTop.location;
const request = {
'secure': (location.protocol === 'https:') ? 1 : 0,
'deviceWidth': winTop.screen.width,
Expand Down

0 comments on commit 76ddb86

Please sign in to comment.