1function isMobileDevice() { 2 const ua = navigator.userAgent.toLowerCase(); 3 return /ipad/i.test(ua) || /iphone os/i.test(ua) || /midp/i.test(ua) || /rv:1\.2\.3\.4/i.test(ua) || /ucweb/i.test(ua) || /android/i.test(ua) || /windows ce/i.test(ua) || /windows mobile/i.test(ua); 4} 5function getDeviceType() { 6 return isMobileDevice() ? "Mobile" : "PC"; 7} 8export { isMobileDevice as n, getDeviceType as t };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.