File tree Expand file tree Collapse file tree 6 files changed +15
-13
lines changed
Expand file tree Collapse file tree 6 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
3- // Last Updated On: 2020-03-23 2:31:22 AM UTC
3+ // Last Updated On: 2020-08-12 11:18:41 AM UTC
44
55// ________________
6- // DetectRTC v1.4.0
6+ // DetectRTC v1.4.1
77
88// Open-Sourced: https://github.com/muaz-khan/DetectRTC
99
11281128 DetectRTC . isPromisesSupported = ! ! ( 'Promise' in window ) ;
11291129
11301130 // version is generated by "grunt"
1131- DetectRTC . version = '1.4.0 ' ;
1131+ DetectRTC . version = '1.4.1 ' ;
11321132
11331133 if ( typeof DetectRTC === 'undefined' ) {
11341134 window . DetectRTC = { } ;
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ node npm-test.js
128128You can even link specific versions:
129129
130130``` html
131- <script src =" https://github.com/muaz-khan/DetectRTC/releases/download/1.4.0 /DetectRTC.js" ></script >
131+ <script src =" https://github.com/muaz-khan/DetectRTC/releases/download/1.4.1 /DetectRTC.js" ></script >
132132```
133133
134134<img src =" https://www.webrtc-experiment.com/images/DetectRTC.png " style =" width :100% ;" />
@@ -188,11 +188,11 @@ DetectRTC.load(function() {
188188
189189# ` DetectRTC.version `
190190
191- DetectRTC is supporting ` version ` property since ` 1.4.0 ` .
191+ DetectRTC is supporting ` version ` property since ` 1.4.1 ` .
192192
193193``` javascript
194- if (DetectRTC .version === ' 1.4.0 ' ) {
195- alert (' We are using DetectRTC version 1.4.0 ' );
194+ if (DetectRTC .version === ' 1.4.1 ' ) {
195+ alert (' We are using DetectRTC version 1.4.1 ' );
196196}
197197```
198198
Original file line number Diff line number Diff line change 11{
22 "name" : " detectrtc" ,
3- "version" : " 1.4.0 " ,
3+ "version" : " 1.4.1 " ,
44 "authors" : [
55 {
66 "name" : " Muaz Khan" ,
Original file line number Diff line number Diff line change @@ -118,7 +118,9 @@ function detectDesktopOS() {
118118 case 'iOS' :
119119 if ( / O S ( \d + ) _ ( \d + ) _ ? ( \d + ) ? / . test ( nAgt ) ) {
120120 osVersion = / O S ( \d + ) _ ( \d + ) _ ? ( \d + ) ? / . exec ( nVer ) ;
121- osVersion = osVersion [ 1 ] + '.' + osVersion [ 2 ] + '.' + ( osVersion [ 3 ] | 0 ) ;
121+ if ( osVersion && osVersion . length > 3 ) {
122+ osVersion = osVersion [ 1 ] + '.' + osVersion [ 2 ] + '.' + ( osVersion [ 3 ] | 0 ) ;
123+ }
122124 }
123125 break ;
124126 }
Original file line number Diff line number Diff line change 11{
22 "name" : " detectrtc" ,
33 "preferGlobal" : false ,
4- "version" : " 1.4.0 " ,
4+ "version" : " 1.4.1 " ,
55 "author" : {
66 "name" : " Muaz Khan" ,
77 "email" : " muazkh@gmail.com" ,
You can’t perform that action at this time.
0 commit comments