"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7323/react/features/base/environment/utils.ts" (7 Jun 2023, 432 Bytes) of package /linux/misc/jitsi-meet-7323.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import Platform from '../react/Platform';
    2 
    3 /**
    4  * Returns whether or not the current environment is a mobile device.
    5  *
    6  * @returns {boolean}
    7  */
    8 export function isMobileBrowser() {
    9     return Platform.OS === 'android' || Platform.OS === 'ios';
   10 }
   11 
   12 
   13 /**
   14  * Returns whether or not the current environment is an ios mobile device.
   15  *
   16  * @returns {boolean}
   17  */
   18 export function isIosMobileBrowser() {
   19     return Platform.OS === 'ios';
   20 }