Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: add ipados to list of Platform.OS (#8205)

Marc Seitz16d88a288f0c
diff --git a/react/features/base/react/Platform.web.js b/react/features/base/react/Platform.web.js
index 8f35d37d31..92b08c710d 100644
--- a/react/features/base/react/Platform.web.js
+++ b/react/features/base/react/Platform.web.js
@@ -1,11 +1,11 @@
/* @flow */
-const { userAgent } = navigator;
+const { userAgent, maxTouchPoints, platform } = navigator;
let OS;
if (userAgent.match(/Android/i)) {
OS = 'android';
-} else if (userAgent.match(/iP(ad|hone|od)/i)) {
+} else if (userAgent.match(/iP(ad|hone|od)/i) || (maxTouchPoints && maxTouchPoints > 2 && /MacIntel/.test(platform))) {
OS = 'ios';
} else if (userAgent.match(/Mac(intosh| OS X)/i)) {
OS = 'macos';