From 3cb7bb9f51e3142da2535cbde3cc8525cccf472f Mon Sep 17 00:00:00 2001 From: bcoles Date: Mon, 28 Jan 2013 01:01:29 +1030 Subject: [PATCH] Add support for Windows 8 --- core/main/client/os.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/main/client/os.js b/core/main/client/os.js index eeba7ebe6..a9361f962 100644 --- a/core/main/client/os.js +++ b/core/main/client/os.js @@ -47,6 +47,9 @@ beef.os = { isWin7: function() { return (this.ua.match('(Windows NT 6.1)|(Windows NT 7.0)')) ? true : false; }, + isWin8: function() { + return (this.ua.match('(Windows NT 6.2)')) ? true : false; + }, isOpenBSD: function() { return (this.ua.indexOf('OpenBSD') != -1) ? true : false; @@ -116,6 +119,7 @@ beef.os = { if(this.isWinServer2003()) return 'Windows Server 2003'; if(this.isWinVista()) return 'Windows Vista'; if(this.isWin7()) return 'Windows 7'; + if(this.isWin8()) return 'Windows 8'; //Nokia if(this.isNokia()) {