Skip to content

Commit

Permalink
Remove use of local storage
Browse files Browse the repository at this point in the history
As requested, we remove the use of local storage.
prebid#8689
  • Loading branch information
thomasdseao authored Jul 15, 2022
1 parent 4e1ed0c commit 3c2be25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/impactifyBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ const createOpenRtbRequest = (validBidRequests, bidderRequest) => {
source: {tid: bidderRequest.auctionId}
};

// Get the url parameters
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const checkPrebid = urlParams.get('_checkPrebid')
// Force impactify debugging parameter
if (window.localStorage.getItem('_im_db_bidder') != null) {
request.test = Number(window.localStorage.getItem('_im_db_bidder'));
if (checkPrebid != null) {
request.test = Number(checkPrebid);
}

// Set Schain in request
Expand Down

0 comments on commit 3c2be25

Please sign in to comment.