Skip to content

Commit

Permalink
gumgum & adagio Bid Adapters: remove extra defensive code to solve lg…
Browse files Browse the repository at this point in the history
…tm alert (#7737)

* Update gumgumBidAdapter.js

* Update adagioBidAdapter.js
  • Loading branch information
patmmccann authored Nov 19, 2021
1 parent 8f6f3b0 commit a1f3038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function getElementFromTopWindow(element, currentWindow) {
function autoDetectAdUnitElementIdFromGpt(adUnitCode) {
const autoDetectedAdUnit = getGptSlotInfoForAdUnitCode(adUnitCode);

if (autoDetectedAdUnit && autoDetectedAdUnit.divId) {
if (autoDetectedAdUnit.divId) {
return autoDetectedAdUnit.divId;
}
};
Expand Down
4 changes: 2 additions & 2 deletions modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ function buildRequests(validBidRequests, bidderRequest) {
let gpid = '';

const date = new Date();
const lt = date && date.getTime();
const to = date && date.getTimezoneOffset();
const lt = date.getTime();
const to = date.getTimezoneOffset();
if (to) {
lt && (data.lt = lt);
data.to = to;
Expand Down

0 comments on commit a1f3038

Please sign in to comment.