Skip to content

Commit

Permalink
Between Bid Adapter & Airgrid rtd module: fix support for ie11 (#7619)
Browse files Browse the repository at this point in the history
* Update betweenBidAdapter.js

* Update yahoosspBidAdapter.js

* Update adapterManager_spec.js

* Update adapterManager_spec.js

* Update airgridRtdProvider.js

* Update yahoosspBidAdapter.js
  • Loading branch information
patmmccann authored Oct 26, 2021
1 parent 4dc1a22 commit df13627
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/airgridRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function attachScriptTagToDOM(rtdConfig) {
edktInitializor.load = function(e) {
var p = e || 'sdk';
var n = document.createElement('script');
n.type = 'text/javascript';
n.type = 'module';
n.async = true;
n.src = 'https://cdn.edkt.io/' + p + '/edgekit.min.js';
document.getElementsByTagName('head')[0].appendChild(n);
Expand Down
3 changes: 2 additions & 1 deletion modules/betweenBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const BIDDER_CODE = 'between';
let ENDPOINT = 'https://ads.betweendigital.com/adjson?t=prebid';
const CODE_TYPES = ['inpage', 'preroll', 'midroll', 'postroll'];

const includes = require('core-js-pure/features/array/includes.js');
export const spec = {
code: BIDDER_CODE,
aliases: ['btw'],
Expand Down Expand Up @@ -53,7 +54,7 @@ export const spec = {
params.mind = video.mind;
params.pos = 'atf';
ENDPOINT += '&jst=pvc';
params.codeType = CODE_TYPES.includes(video.codeType) ? video.codeType : 'inpage';
params.codeType = includes(CODE_TYPES, video.codeType) ? video.codeType : 'inpage';
}

if (i.params.itu !== undefined) {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/unit/core/adapterManager_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ describe('adapterManager tests', function () {
});

it('should call spec\'s onBidderError callback when callBidderError is called', function () {
const bidderRequest = getBidRequests().find(bidRequest => bidRequest.bidderCode === bidder);
const bidRequests = getBidRequests();
const bidderRequest = find(bidRequests, bidRequest => bidRequest.bidderCode === bidder);
const xhrErrorMock = {
status: 500,
statusText: 'Internal Server Error'
Expand Down

0 comments on commit df13627

Please sign in to comment.