[Pkg-javascript-commits] [dojo] 19/41: add edge sniffing + make sure edge does not report it is chrome fixes #18172
David Prévot
taffit at moszumanska.debian.org
Thu Mar 24 04:28:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.9.8
in repository dojo.
commit 094c3ccf1c2a4a5deea66a263b0e7594d38a9f2c
Author: Christophe Jolif <cjolif at gmail.com>
Date: Sat Sep 26 14:28:47 2015 +0200
add edge sniffing + make sure edge does not report it is chrome
fixes #18172
---
sniff.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sniff.js b/sniff.js
index 500d54a..374acaf 100644
--- a/sniff.js
+++ b/sniff.js
@@ -21,12 +21,14 @@ define(["./has"], function(has){
has.add("khtml", dav.indexOf("Konqueror") >= 0 ? tv : undefined);
has.add("webkit", !has("wp") // NOTE: necessary since Windows Phone 8.1 Update 1, see #18540
&& parseFloat(dua.split("WebKit/")[1]) || undefined);
- has.add("chrome", parseFloat(dua.split("Chrome/")[1]) || undefined);
+ has.add("edge", parseFloat(dua.split("Edge/")[1]) || undefined);
+ has.add("chrome", !has("edge")
+ && parseFloat(dua.split("Chrome/")[1]) || undefined);
has.add("android", !has("wp") // NOTE: necessary since Windows Phone 8.1 Update 1, see #18528
&& parseFloat(dua.split("Android ")[1]) || undefined);
has.add("safari", dav.indexOf("Safari") >= 0
&& !has("wp") // NOTE: necessary since Windows Phone 8.1 Update 1, see #18540
- && !has("chrome") && !has("android") ?
+ && !has("chrome") && !has("android") && !has("edge") ?
parseFloat(dav.split("Version/")[1]) : undefined);
has.add("mac", dav.indexOf("Macintosh") >= 0);
has.add("quirks", document.compatMode == "BackCompat");
--
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