Skip to content

Commit

Permalink
Update collectcentBidAdapter.js
Browse files Browse the repository at this point in the history
Used bidderRequest.refererInfo.referer instead of window.location
  • Loading branch information
devcollectcent authored Dec 11, 2018
1 parent fbda035 commit 04c3ceb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/collectcentBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ export const spec = {
let winTop;
try {
winTop = window.top;
winTop.location.toString();
} catch (e) {
utils.logMessage(e);
winTop = window;
};

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

0 comments on commit 04c3ceb

Please sign in to comment.