Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/base/react/Platform.web.js

35 lines
790 B

/* @flow */
const { userAgent } = navigator;
let OS;
if (userAgent.match(/Android/i)) {
OS = 'android';
} else if (userAgent.match(/iP(ad|hone|od)/i)) {
OS = 'ios';
} else if (userAgent.match(/Mac(intosh| OS X)/i)) {
OS = 'macos';
} else if (userAgent.match(/Windows/i)) {
OS = 'windows';
}
/**
* Provides a minimal equivalent of react-native's Platform abstraction.
*/
export default {
/**
* The operating system on which the application is executing.
*
* @type {string}
*/
OS,
/**
* The operating system version on which the application is executing.
* This is intentionally set to undefined so we can tell mobile and mobile web
* appart easier.
*
* @type {number|undefined}
*/
Version: undefined
};