Skip to content

Commit

Permalink
Handle type error while using firefox devtools in any of ios responsi…
Browse files Browse the repository at this point in the history
…ve modes
  • Loading branch information
piotrrussw committed Jul 20, 2020
1 parent 3da317e commit d0f5349
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 d0f5349

Please sign in to comment.