mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
13 lines
245 B
JavaScript
13 lines
245 B
JavaScript
import MobileDetect from 'mobile-detect';
|
|
|
|
const mobileDetect = new MobileDetect(window.navigator.userAgent);
|
|
|
|
export function isMobile() {
|
|
|
|
return mobileDetect.mobile() != null;
|
|
}
|
|
|
|
export function isIOS() {
|
|
return mobileDetect.is('iOS');
|
|
}
|