From 71c9a45a8b41a5065b1f406b203b8927acb49ed0 Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Tue, 4 Oct 2016 00:10:17 +0300 Subject: [PATCH] Fixed Windows version detection Windows 10.0 was detected as 0.0. This is a followup for https://github.com/inbasic/ignotifier/pull/416. --- src/lib/wrapper/firefox/tray/winnt/tray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wrapper/firefox/tray/winnt/tray.js b/src/lib/wrapper/firefox/tray/winnt/tray.js index 8ee4a2a7..d86094c2 100644 --- a/src/lib/wrapper/firefox/tray/winnt/tray.js +++ b/src/lib/wrapper/firefox/tray/winnt/tray.js @@ -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 = {};