Skip to content

Commit

Permalink
Fixed Windows version detection
Browse files Browse the repository at this point in the history
Windows 10.0 was detected as 0.0. This is a followup for #416.
  • Loading branch information
justanotheranonymoususer authored Oct 3, 2016
1 parent 9cc65fc commit 71c9a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wrapper/firefox/tray/winnt/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var {Cc, Ci, Cu} = require('chrome'),
unload = require('sdk/system/unload'),
oscpu = Cc['@mozilla.org/network/protocol;1?name=http']
.getService(Ci.nsIHttpProtocolHandler).oscpu,
version = parseInt((/\d\.\d/.exec(oscpu) || ['0'])[0].replace('.', '')), // Windows Version
version = parseInt((/\d+\.\d+/.exec(oscpu) || ['0'])[0].replace('.', '')), // Windows Version
config = require('../../../../config');

var exportsHelper = {};
Expand Down

0 comments on commit 71c9a45

Please sign in to comment.