Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sourbh-doceree committed Mar 19, 2021
1 parent 9d58213 commit 63b83fa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions modules/docereeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ const BIDDER_CODE = 'doceree';
const END_POINT = 'https://bidder.doceree.com'

function registerImpression(responseJson) {
if (responseJson.impressionLink) {
ajax(responseJson.impressionLink, function() {
// nothing to do
}, null, {method: 'GET', customHeaders: {'Content-type': 'application/json; charset=utf-8'}});
}
return (function(){
if (responseJson.impressionLink) {
ajax(responseJson.impressionLink, function() {
// nothing to do
}, null, {method: 'GET', customHeaders: {'Content-type': 'application/json; charset=utf-8'}});
}
})()
}


function processHTMLAndRender(responseJson, creativeHtml) {
if (responseJson.sourceURL) {
creativeHtml = creativeHtml.replace('<head>', `<head><style>html,body{padding:0;margin:0;}</style><base href="${responseJson.sourceURL.split('unzip')[0]}unzip/" target="_blank">`);
Expand Down

0 comments on commit 63b83fa

Please sign in to comment.