Update OpenVidu.ts

Typo fix
pull/531/head
Richard Gustavsson 2020-09-04 01:00:42 +02:00 committed by GitHub
parent d1ecd92796
commit 072543a5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ export class OpenVidu {
const family = platform.os!!.family; const family = platform.os!!.family;
const userAgent = !!platform.ua ? platform.ua : navigator.userAgent; const userAgent = !!platform.ua ? platform.ua : navigator.userAgent;
if (isIPhone || isIPhone) { if (isIPhone || isIPad) {
if(this.isIOSWithSafari(userAgent) || platform['isIonicIos']){ if(this.isIOSWithSafari(userAgent) || platform['isIonicIos']){
return 1; 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) 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); && !/\b(\w*CriOS\w*)\b/.test(userAgent) && !/\b(\w*FxiOS\w*)\b/.test(userAgent);
} }
} }