From 76ddb86fa6b3c8de41bbf2b97c93de41123f6fe4 Mon Sep 17 00:00:00 2001 From: devcollectcent <45760266+devcollectcent@users.noreply.github.com> Date: Tue, 11 Dec 2018 15:12:46 +0200 Subject: [PATCH] Update collectcentBidAdapter.js --- modules/collectcentBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/collectcentBidAdapter.js b/modules/collectcentBidAdapter.js index 1a285a4c16d..ab7df12d190 100644 --- a/modules/collectcentBidAdapter.js +++ b/modules/collectcentBidAdapter.js @@ -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,