Skip to content

Commit

Permalink
DetectRTC publish 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Aug 12, 2020
1 parent 0a3e124 commit ca00144
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

// Last Updated On: 2020-03-23 2:31:22 AM UTC
// Last Updated On: 2020-08-12 11:18:41 AM UTC

// ________________
// DetectRTC v1.4.0
// DetectRTC v1.4.1

// Open-Sourced: https://github.com/muaz-khan/DetectRTC

Expand Down Expand Up @@ -1128,7 +1128,7 @@
DetectRTC.isPromisesSupported = !!('Promise' in window);

// version is generated by "grunt"
DetectRTC.version = '1.4.0';
DetectRTC.version = '1.4.1';

if (typeof DetectRTC === 'undefined') {
window.DetectRTC = {};
Expand Down
6 changes: 3 additions & 3 deletions DetectRTC.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ node npm-test.js
You can even link specific versions:

```html
<script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.4.0/DetectRTC.js"></script>
<script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.4.1/DetectRTC.js"></script>
```

<img src="https://www.webrtc-experiment.com/images/DetectRTC.png" style="width:100%;" />
Expand Down Expand Up @@ -188,11 +188,11 @@ DetectRTC.load(function() {

# `DetectRTC.version`

DetectRTC is supporting `version` property since `1.4.0`.
DetectRTC is supporting `version` property since `1.4.1`.

```javascript
if(DetectRTC.version === '1.4.0') {
alert('We are using DetectRTC version 1.4.0');
if(DetectRTC.version === '1.4.1') {
alert('We are using DetectRTC version 1.4.1');
}
```

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "detectrtc",
"version": "1.4.0",
"version": "1.4.1",
"authors": [
{
"name": "Muaz Khan",
Expand Down
4 changes: 3 additions & 1 deletion dev/detectDesktopOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ function detectDesktopOS() {
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "detectrtc",
"preferGlobal": false,
"version": "1.4.0",
"version": "1.4.1",
"author": {
"name": "Muaz Khan",
"email": "[email protected]",
Expand Down

0 comments on commit ca00144

Please sign in to comment.