[Pkg-javascript-commits] [dojo] 16/21: Add Microsoft-recommended UA sniff for IE11

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.9.2
in repository dojo.

commit bad851981604b4978e406edf11ab0a23b019a859
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Nov 29 21:13:02 2013 +0000

    Add Microsoft-recommended UA sniff for IE11
    
    Fixes #17311
    
    (cherry picked from commit 28c2050cbb7f69daa57bd66e3b740a16bb19fd75)
---
 sniff.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sniff.js b/sniff.js
index 99266d5..e2ed0cb 100644
--- a/sniff.js
+++ b/sniff.js
@@ -33,6 +33,7 @@ define(["./has"], function(has){
 		}
 		has.add("android", parseFloat(dua.split("Android ")[1]) || undefined);
 		has.add("bb", (dua.indexOf("BlackBerry") >= 0 || dua.indexOf("BB10") >= 0) && parseFloat(dua.split("Version/")[1]) || undefined);
+		has.add("trident", parseFloat(dav.split("Trident/")[1]) || undefined);
 
 		has.add("svg", typeof SVGAngle !== "undefined");
 
@@ -45,7 +46,7 @@ define(["./has"], function(has){
 			}
 
 			// Mozilla and firefox
-			if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit")){
+			if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit") && !has("trident")){
 				has.add("mozilla", tv);
 			}
 			if(has("mozilla")){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list