Files
jitsi-meet/react/features/base/environment/utils.ts
Saúl Ibarra Corretgé 7cd39b7983 feat(ts) make tsc happy
2022-11-02 09:03:14 +01:00

21 lines
432 B
TypeScript

import Platform from '../react/Platform';
/**
* Returns whether or not the current environment is a mobile device.
*
* @returns {boolean}
*/
export function isMobileBrowser() {
return Platform.OS === 'android' || Platform.OS === 'ios';
}
/**
* Returns whether or not the current environment is an ios mobile device.
*
* @returns {boolean}
*/
export function isIosMobileBrowser() {
return Platform.OS === 'ios';
}