File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -469,13 +469,13 @@ window.renderAd=function(ortb){
469
469
return asset .video .vasttag ;
470
470
}
471
471
}
472
-
472
+
473
473
ortb .assets .forEach (asset => {
474
474
template = template .replace (` ##hb_native_asset_id_${ asset .id } ##` , getAssetValue (asset));
475
475
});
476
-
476
+
477
477
if (ortb .privacy ) {
478
- template = template .replace (" hb_native_privacy" , ortb .privacy );
478
+ template = template .replace (" ## hb_native_privacy## " , ortb .privacy );
479
479
}
480
480
template = template .replace (" ##hb_native_linkurl##" , ortb .link .url );
481
481
return template;
@@ -564,7 +564,7 @@ window.renderAd = (ortb) => {
564
564
};
565
565
566
566
let message = JSON .stringify (viewabilityRecord);
567
- window .parent .postMessage (JSON . stringify ( message) , ' *' );
567
+ window .parent .postMessage (message, ' *' );
568
568
})
569
569
}
570
570
You can’t perform that action at this time.
0 commit comments