Skip to content

Commit

Permalink
GLU-657/remove resize from securecreatives (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
florevallatmrf authored and Pedro López Jiménez committed Mar 18, 2019
1 parent aa87566 commit 408b8bf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/secureCreatives.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { EVENTS } from './constants';
import { isSlotMatchingAdUnitCode, logWarn } from './utils';
import { auctionManager } from './auctionManager';
import find from 'core-js/library/fn/array/find';
import { isRendererRequired, executeRenderer } from './Renderer';

const BID_WON = EVENTS.BID_WON;
const ERROR_SECURE_CREATIVE = EVENTS.ERROR_SECURE_CREATIVE;
Expand Down Expand Up @@ -61,11 +60,9 @@ function receiveMessage(ev) {
}

function sendAdToCreative(adObject, remoteDomain, source) {
const { adId, ad, adUrl, width, height, renderer } = adObject;
// rendering for outstream safeframe
if (isRendererRequired(renderer)) {
executeRenderer(renderer, adObject);
} else if (adId) {
const { adId, ad, adUrl, width, height } = adObject;

if (adId) {
resizeRemoteCreative(adObject);
source.postMessage(
JSON.stringify({
Expand Down

0 comments on commit 408b8bf

Please sign in to comment.