1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-27 08:12:48 +00:00
Lidarr/frontend/src/Utilities/isMobile.js

8 lines
192 B
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
import MobileDetect from 'mobile-detect';
export default function isMobile() {
const mobileDetect = new MobileDetect(window.navigator.userAgent);
return mobileDetect.mobile() != null;
}