Skip to content

Commit

Permalink
Catch cross-origin DOMException (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and Matt Kendall committed Dec 6, 2016
1 parent 05d0bf9 commit 8a3b191
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/adapters/gumgum.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ const GumgumAdapter = function GumgumAdapter() {

const bidEndpoint = `https://g2.gumgum.com/hbid/imp`;

const WINDOW = global.top;
const SCREEN = WINDOW.screen;
let WINDOW;
let SCREEN;

try {
WINDOW = global.top;
SCREEN = WINDOW.screen;
} catch (error) {
utils.logError(error);
return;
}

function _callBids({ bids }) {
const browserParams = {
Expand Down

0 comments on commit 8a3b191

Please sign in to comment.