From feeab249b7b2d8023b3ec04b5e44cd930e581dcc Mon Sep 17 00:00:00 2001 From: asurovenko Date: Wed, 23 Feb 2022 00:52:50 +0700 Subject: [PATCH] zeta_global_sspBidAdapter: remove devicetype --- modules/zeta_global_sspBidAdapter.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/zeta_global_sspBidAdapter.js b/modules/zeta_global_sspBidAdapter.js index 1407b92c481..87fdbe1396f 100644 --- a/modules/zeta_global_sspBidAdapter.js +++ b/modules/zeta_global_sspBidAdapter.js @@ -109,8 +109,6 @@ export const spec = { payload.device.ua = navigator.userAgent; payload.device.language = navigator.language; - payload.device.devicetype = isMobile() ? 1 : isConnectedTV() ? 3 : 2; - payload.site.mobile = payload.device.devicetype === 1 ? 1 : 0; if (params.test) { payload.test = params.test; @@ -280,14 +278,6 @@ function getDomainFromURL(url) { return hostname; } -function isMobile() { - return /(ios|ipod|ipad|iphone|android)/i.test(navigator.userAgent); -} - -function isConnectedTV() { - return /(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent); -} - function provideMediaType(zetaBid, bid) { if (zetaBid.ext && zetaBid.ext.bidtype) { if (zetaBid.ext.bidtype === VIDEO) {