Skip to content

Commit ca00144

Browse files
committed
DetectRTC publish 1.4.1
1 parent 0a3e124 commit ca00144

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

DetectRTC.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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

@@ -1128,7 +1128,7 @@
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 = {};

DetectRTC.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ node npm-test.js
128128
You 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

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "detectrtc",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"authors": [
55
{
66
"name": "Muaz Khan",

dev/detectDesktopOS.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ function detectDesktopOS() {
118118
case 'iOS':
119119
if (/OS (\d+)_(\d+)_?(\d+)?/.test(nAgt)) {
120120
osVersion = /OS (\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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)