Skip to content

Commit

Permalink
[sspbc-5.7] remove storage/cookie detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-bialy-wpm committed Jul 25, 2022
1 parent 7f3fbdf commit 9fd8390
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions modules/sspBCBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { includes as strIncludes } from '../src/polyfill.js';
import { getStorageManager } from '../src/storageManager.js';

const BIDDER_CODE = 'sspBC';
const BIDDER_URL = 'https://ssp.wp.pl/bidder/';
const SYNC_URL = 'https://ssp.wp.pl/bidder/usersync';
const NOTIFY_URL = 'https://ssp.wp.pl/bidder/notify';
const TRACKER_URL = 'https://bdr.wpcdn.pl/tag/jstracker.js';
const GVLID = 676;
const storage = getStorageManager({ gvlid: GVLID, bidderCode: BIDDER_CODE });
const TMAX = 450;
const BIDDER_VERSION = '5.6';
const BIDDER_VERSION = '5.7';
const DEFAULT_CURRENCY = 'PLN';
const W = window;
const { navigator } = W;
Expand Down Expand Up @@ -101,11 +99,6 @@ const getNotificationPayload = bidData => {
}
}

const cookieSupport = () => {
const isSafari = /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);
return !isSafari && storage.cookiesAreEnabled();
};

const applyClientHints = ortbRequest => {
const { location } = document;
const { connection = {}, deviceMemory, userAgentData = {} } = navigator;
Expand Down Expand Up @@ -575,7 +568,7 @@ const spec = {

return {
method: 'POST',
url: `${BIDDER_URL}?cs=${cookieSupport()}&bdver=${BIDDER_VERSION}&pbver=${pbver}&inver=0`,
url: `${BIDDER_URL}?bdver=${BIDDER_VERSION}&pbver=${pbver}&inver=0`,
data: JSON.stringify(payload),
bidderRequest,
};
Expand Down

0 comments on commit 9fd8390

Please sign in to comment.