mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
9 lines
No EOL
372 B
JavaScript
9 lines
No EOL
372 B
JavaScript
import window from "./global/window";
|
|
|
|
const ua = (window.navigator && window.navigator.userAgent) || "",
|
|
ie = (ua.indexOf("MSIE ") > 0) || (ua.indexOf("Trident/") > 0),
|
|
mobile = "ontouchstart" in window, //not entirely correct but will currently do
|
|
iemobile = /iemobile/i.test(ua),
|
|
iphone = /iphone/i.test(ua) && !iemobile;
|
|
|
|
export {ua, ie, mobile, iemobile, iphone}; |