Add support for Windows 10

This commit is contained in:
Brendan Coles
2016-02-10 07:40:28 +00:00
parent 85d87f47b5
commit bef0c6dcdd

View File

@@ -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';