Skip to content

Commit

Permalink
Revert "Prebid Core: Restore use of server-side adapter without clien…
Browse files Browse the repository at this point in the history
…t-side adapter (#7662)"

This reverts commit b927d8d.
  • Loading branch information
FilipStamenkovic authored Nov 15, 2021
1 parent b927d8d commit d3ec9c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,13 @@ $$PREBID_GLOBAL$$.requestBids = hook('async', function ({ bidsBackHandler, timeo

logInfo('Invoking $$PREBID_GLOBAL$$.requestBids', arguments);

let _s2sConfigs = [];
const s2sBidders = [];
let _s2sConfigs = config.getConfig('s2sConfig') || [];

if (!Array.isArray(_s2sConfigs)) {
_s2sConfigs = [_s2sConfigs];
}
config.getConfig('s2sConfig', config => {
if (config && config.s2sConfig) {
_s2sConfigs = Array.isArray(config.s2sConfig) ? config.s2sConfig : [config.s2sConfig];
}
});

_s2sConfigs.forEach(s2sConfig => {
s2sBidders.push(...s2sConfig.bidders);
Expand Down

0 comments on commit d3ec9c5

Please sign in to comment.