Skip to content

Commit

Permalink
Do not return direct reference to a global array
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Nov 16, 2021
1 parent 2a45317 commit 34dbfeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,8 @@ export function getStandardBidderSettings(mediaType, bidderCode) {
}

if (mediaType === 'video') {
const adserverTargeting = standardSettings[CONSTANTS.JSON_MAPPING.ADSERVER_TARGETING];
const adserverTargeting = standardSettings[CONSTANTS.JSON_MAPPING.ADSERVER_TARGETING].slice();
standardSettings[CONSTANTS.JSON_MAPPING.ADSERVER_TARGETING] = adserverTargeting;

// Adding hb_uuid + hb_cache_id
[TARGETING_KEYS.UUID, TARGETING_KEYS.CACHE_ID].forEach(targetingKeyVal => {
Expand Down

0 comments on commit 34dbfeb

Please sign in to comment.