Skip to content

Commit

Permalink
Merge pull request #42 from pageye123/master
Browse files Browse the repository at this point in the history
better code for handling array
  • Loading branch information
muaz-khan authored Apr 22, 2017
2 parents 7ee7e18 + 725880c commit c5b0db4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
6 changes: 2 additions & 4 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last time updated: 2017-03-11 6:31:40 AM UTC
// Last time updated: 2017-04-22 4:30:12 PM UTC

// Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js

Expand Down Expand Up @@ -428,8 +428,7 @@
s: 'Search Bot',
r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/
}];
for (var id in clientStrings) {
var cs = clientStrings[id];
for (var i = 0, cs; cs = clientStrings[i]; i++) {
if (cs.r.test(nAgt)) {
os = cs.s;
break;
Expand Down Expand Up @@ -469,7 +468,6 @@
osVersion: osVersion
};
}

var osName = 'Unknown OS';
var osVersion = 'Unknown OS Version';

Expand Down
Loading

0 comments on commit c5b0db4

Please sign in to comment.