Skip to content

Commit

Permalink
use ajax() craftBidAdapter (#7699)
Browse files Browse the repository at this point in the history
  • Loading branch information
crumbjp authored Nov 15, 2021
1 parent 412b745 commit 0d6b3ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/craftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { auctionManager } from '../src/auctionManager.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import { getStorageManager } from '../src/storageManager.js';
import {ajax} from '../src/ajax.js';

const BIDDER_CODE = 'craft';
const URL_BASE = 'https://gacraft.jp/prebid-v3';
Expand Down Expand Up @@ -110,9 +111,10 @@ export const spec = {
},

onBidWon: function(bid) {
var xhr = new XMLHttpRequest();
xhr.open('POST', bid._prebidWon);
xhr.send();
ajax(bid._prebidWon, null, null, {
method: 'POST',
contentType: 'application/json'
});
}
};

Expand Down

0 comments on commit 0d6b3ed

Please sign in to comment.