Skip to content

Commit b0f4097

Browse files
Added Windows 8.1 support
1 parent 74ee1a3 commit b0f4097

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

platform.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@
448448
// http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
449449
// http://web.archive.org/web/20081122053950/http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
450450
data = {
451+
'6.3': '8.1',
451452
'6.2': '8',
452453
'6.1': 'Server 2008 R2 / 7',
453454
'6.0': 'Server 2008 / Vista',

test/testwin81.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var platform = require('../platform'),
2+
testUA = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.5 Safari/537.36',
3+
parsed = platform.parse(testUA);
4+
5+
console.log(parsed.os.toString());
6+
console.log(parsed.os.version === '8.1');

0 commit comments

Comments
 (0)