From 151646156d16d4737ef10ed6625924ca8d84b1cd Mon Sep 17 00:00:00 2001 From: sinn3r Date: Thu, 27 Feb 2014 10:54:38 -0600 Subject: [PATCH] Check navigator.oscpu for FF If we don't check navigator.oscpu, IE 11 is detected as FF. --- data/js/detect/os.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/js/detect/os.js b/data/js/detect/os.js index cbb2df3c47..a62728962d 100644 --- a/data/js/detect/os.js +++ b/data/js/detect/os.js @@ -196,8 +196,7 @@ window.os_detect.getVersion = function(){ if (!ua_version || 0 == ua_version.length) { ua_is_lying = true; } - } else if (!document.all && navigator.taintEnabled || - 'MozBlobBuilder' in window) { + } else if (navigator.oscpu && !document.all && navigator.taintEnabled || 'MozBlobBuilder' in window) { // Use taintEnabled to identify FF since other recent browsers // implement window.getComputedStyle now. For some reason, checking for // taintEnabled seems to cause IE 6 to stop parsing, so make sure this