From bef0c6dcdd8b0cc369d6b4497f8617dc787ba57c Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Wed, 10 Feb 2016 07:40:28 +0000 Subject: [PATCH] Add support for Windows 10 --- core/main/client/os.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/main/client/os.js b/core/main/client/os.js index 0b6a7f72a..1232f835f 100644 --- a/core/main/client/os.js +++ b/core/main/client/os.js @@ -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';