Check navigator.oscpu for FF

If we don't check navigator.oscpu, IE 11 is detected as FF.
bug/bundler_fix
sinn3r 2014-02-27 10:54:38 -06:00
parent d358fe5f94
commit 151646156d
1 changed files with 1 additions and 2 deletions

View File

@ -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