Add support for Windows 10
This commit is contained in:
@@ -86,6 +86,10 @@ beef.os = {
|
||||
return (this.ua.match('(Windows NT 6.3)')) ? true : false;
|
||||
},
|
||||
|
||||
isWin10: function() {
|
||||
return (this.ua.match('Windows NT 10.0')) ? true : false;
|
||||
},
|
||||
|
||||
isOpenBSD: function() {
|
||||
return (this.ua.indexOf('OpenBSD') != -1) ? true : false;
|
||||
},
|
||||
@@ -211,6 +215,7 @@ beef.os = {
|
||||
getVersion: function(){
|
||||
//Windows
|
||||
if(this.isWindows()) {
|
||||
if (this.isWin10()) return '10';
|
||||
if (this.isWin81()) return '8.1';
|
||||
if (this.isWin8()) return '8';
|
||||
if (this.isWin7()) return '7';
|
||||
|
||||
Reference in New Issue
Block a user