mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
23670bca12
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
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');
|
|
}
|