Skip to content

Commit

Permalink
Merge pull request #93 from piotrrussw/fix/firefox-type-error
Browse files Browse the repository at this point in the history
Handle type error on firefox
  • Loading branch information
muaz-khan authored Aug 12, 2020
2 parents a64b5c3 + d0f5349 commit 0a3e124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DetectRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@
case 'iOS':
if (/OS (\d+)_(\d+)_?(\d+)?/.test(nAgt)) {
osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer);
osVersion = osVersion[1] + '.' + osVersion[2] + '.' + (osVersion[3] | 0);
if (osVersion && osVersion.length > 3) {
osVersion = osVersion[1] + '.' + osVersion[2] + '.' + (osVersion[3] | 0);
}
}
break;
}
Expand Down

0 comments on commit 0a3e124

Please sign in to comment.