From 4391cc6a6d63607db7293242b24f57a8b4f44992 Mon Sep 17 00:00:00 2001 From: Ankit Prakash Date: Tue, 10 Dec 2019 10:47:48 -0700 Subject: [PATCH] use array map/join instead of object.entries --- modules/sovrnBidAdapter.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/sovrnBidAdapter.js b/modules/sovrnBidAdapter.js index 44300c9161d..5cd76981e8d 100644 --- a/modules/sovrnBidAdapter.js +++ b/modules/sovrnBidAdapter.js @@ -155,19 +155,19 @@ export const spec = { if (syncOptions.iframeEnabled) { const iidArr = serverResponses.filter(resp => utils.deepAccess(resp, 'body.ext.iid')) .map(resp => resp.body.ext.iid); - const params = {}; + const params = []; if (gdprConsent && gdprConsent.gdprApplies && typeof gdprConsent.consentString === 'string') { - params['gdpr_consent'] = gdprConsent.consentString + params.push(['gdpr_consent', gdprConsent.consentString]); } if (uspConsent) { - params['us_privacy'] = uspConsent; + params.push(['us_privacy', uspConsent]); } if (iidArr[0]) { - params.informer = iidArr[0]; + params.push(['informer', iidArr[0]]); tracks.push({ type: 'iframe', - url: 'https://ap.lijit.com/beacon?' + Object.entries(params).map(p => p.join('=')).join('&') + url: 'https://ap.lijit.com/beacon?' + params.map(p => p.join('=')).join('&') }); } }