Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric45 committed May 28, 2024
1 parent 4f0a058 commit f91b04c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions modules/luceadBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,11 @@ function buildRequests(bidRequests, bidderRequest) {
region,
};

const loadScriptPromise = window.lucead_prebid_load_promise;
const fn = window.lucead_prebid;

(async () => {
if (!loadScriptPromise) { logError(`Please include the ${bidderName} RTD Provider`); }
await loadScriptPromise;
const fn = window.lucead_prebid;

if (fn) {
fn(companionData);
} else {
logError(`Failed to load the ${bidderName} script.`);
}
})();
if (fn && typeof fn === 'function') {
fn(companionData);
}

return {
method: 'POST',
Expand Down

0 comments on commit f91b04c

Please sign in to comment.