Skip to content

Commit

Permalink
Use loadExternalScript instead of loadScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Spark-NF committed Apr 26, 2018
1 parent e2df580 commit 6d81ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loadScript } from 'src/adloader';
import { loadExternalScript } from 'src/adloader';
import { registerBidder } from 'src/adapters/bidderFactory';
import { EVENTS } from 'src/constants';
import { parse } from 'src/url';
Expand Down Expand Up @@ -47,7 +47,7 @@ export const spec = {

// Reload the PublisherTag after the timeout to ensure FastBid is up-to-date and tracking done properly
setTimeout(() => {
loadScript(PUBLISHER_TAG_URL);
loadExternalScript(PUBLISHER_TAG_URL, BIDDER_CODE);
}, bidderRequest.timeout);
}

Expand Down

0 comments on commit 6d81ed4

Please sign in to comment.