mirror of
https://github.com/Readarr/Readarr
synced 2026-01-07 16:13:05 +01:00
Fixed: Scrolling in Firefox in small window (requires refresh) New: Style scrollbar in Firefox Fixed: Scrolling with click and drag Fixes #3088 Fixes #2706
16 lines
354 B
JavaScript
16 lines
354 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');
|
|
}
|
|
|
|
export function isFirefox() {
|
|
return window.navigator.userAgent.toLowerCase().indexOf('firefox/') >= 0;
|
|
}
|