From 9d6d6dfb83580d6a5ffed8faa5762db48f8fd44d Mon Sep 17 00:00:00 2001 From: Alex Pashkov Date: Wed, 28 Aug 2019 14:44:57 +0300 Subject: [PATCH] Add focus check --- modules/viBidAdapter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/viBidAdapter.js b/modules/viBidAdapter.js index 93ead1c2380a..01427a4e926b 100644 --- a/modules/viBidAdapter.js +++ b/modules/viBidAdapter.js @@ -372,7 +372,11 @@ const spec = { ...params }; } - ) + ), + focus: + typeof document.hasFocus === 'function' + ? document.hasFocus() + : undefined }, options: { contentType: 'application/json',