Skip to content

Commit

Permalink
Add focus check
Browse files Browse the repository at this point in the history
  • Loading branch information
alpadotsh committed Aug 28, 2019
1 parent 5b7171d commit 9d6d6df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/viBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ const spec = {
...params
};
}
)
),
focus:
typeof document.hasFocus === 'function'
? document.hasFocus()
: undefined
},
options: {
contentType: 'application/json',
Expand Down

0 comments on commit 9d6d6df

Please sign in to comment.