mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02: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');
|
|
}
|