From 072543a5abb2517b383599c79de0683769aa566e Mon Sep 17 00:00:00 2001 From: Richard Gustavsson Date: Fri, 4 Sep 2020 01:00:42 +0200 Subject: [PATCH] Update OpenVidu.ts Typo fix --- openvidu-browser/src/OpenVidu/OpenVidu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvidu-browser/src/OpenVidu/OpenVidu.ts b/openvidu-browser/src/OpenVidu/OpenVidu.ts index ed1f1313..fc5babb4 100644 --- a/openvidu-browser/src/OpenVidu/OpenVidu.ts +++ b/openvidu-browser/src/OpenVidu/OpenVidu.ts @@ -341,7 +341,7 @@ export class OpenVidu { const family = platform.os!!.family; const userAgent = !!platform.ua ? platform.ua : navigator.userAgent; - if (isIPhone || isIPhone) { + if (isIPhone || isIPad) { if(this.isIOSWithSafari(userAgent) || platform['isIonicIos']){ return 1; } @@ -1064,4 +1064,4 @@ export class OpenVidu { return /\b(\w*Apple\w*)\b/.test(navigator.vendor) && /\b(\w*Safari\w*)\b/.test(userAgent) && !/\b(\w*CriOS\w*)\b/.test(userAgent) && !/\b(\w*FxiOS\w*)\b/.test(userAgent); } -} \ No newline at end of file +}