From 04c3ceb5e0e69da3a4193ec92bbb05f982cd8af3 Mon Sep 17 00:00:00 2001 From: devcollectcent <45760266+devcollectcent@users.noreply.github.com> Date: Tue, 11 Dec 2018 10:43:59 +0200 Subject: [PATCH] Update collectcentBidAdapter.js Used bidderRequest.refererInfo.referer instead of window.location --- modules/collectcentBidAdapter.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/collectcentBidAdapter.js b/modules/collectcentBidAdapter.js index caded725285..1a285a4c16d 100644 --- a/modules/collectcentBidAdapter.js +++ b/modules/collectcentBidAdapter.js @@ -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,