Skip to content

Commit

Permalink
Impactify Bid Adapter: Remove use of local storage debugging flag (pr…
Browse files Browse the repository at this point in the history
…ebid#8693)

* Remove use of local storage

As requested, we remove the use of local storage.
prebid#8689

* Update impactifyBidAdapter.js
  • Loading branch information
thomasdseao authored and jorgeluisrocha committed May 18, 2023
1 parent a91d208 commit 53fee60
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 53fee60

Please sign in to comment.