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
2017-09-05 23:00:26 -04:00

7 lines
192 B
JavaScript

import MobileDetect from 'mobile-detect';
export default function isMobile() {
const mobileDetect = new MobileDetect(window.navigator.userAgent);
return mobileDetect.mobile() != null;
}