47 if ($userAgent !==
null)
49 if (str_contains($userAgent,
'Bitrix24.Disk'))
51 if (str_contains($userAgent,
'Windows'))
58 if (str_contains($userAgent,
'BitrixDesktop'))
60 if (str_contains($userAgent,
'Windows'))
64 if (str_contains($userAgent,
'Mac OS'))
71 if (str_contains($userAgent,
'BitrixMobile') || str_contains($userAgent,
'Bitrix24/'))
73 if (str_contains($userAgent,
'iPhone') || str_contains($userAgent,
'iPad') || str_contains($userAgent,
'Darwin'))
76 return new Browser(
'Bitrix24.Mobile',
'iOS', $device);
80 return new Browser(
'Bitrix24.Mobile',
'Android', $device);