Skip to content

Commit

Permalink
correct user agent value population (prebid#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-modi authored and Pedro López Jiménez committed Mar 18, 2019
1 parent 12a1619 commit efa25fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/oneVideoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ function isConsentRequired(consentData) {

function getRequestData(bid, consentData) {
let loc = utils.getTopWindowLocation();
let global = (window.top) ? window.top : window;
let page = (bid.params.site && bid.params.site.page) ? (bid.params.site.page) : (loc.href);
let ref = (bid.params.site && bid.params.site.referrer) ? bid.params.site.referrer : utils.getTopWindowReferrer();
let bidData = {
Expand All @@ -160,7 +159,7 @@ function getRequestData(bid, consentData) {
ref: ref
},
device: {
ua: global.navigator.userAgent
ua: navigator.userAgent
},
tmax: 200
};
Expand Down

0 comments on commit efa25fa

Please sign in to comment.