From 67c5f576a3682f38585de999897288f759b7cdc5 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Fri, 11 Dec 2015 22:00:41 +0100 Subject: [PATCH] Re-enable full user agent detection Chrome would be recognized as mozilla, since its user agent string tells us that it is mozilla compatible. This lead to some wrong detections in ocbnet slider. --- layout.min.js | 11 ++++++----- layout.src.js | 12 +++++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/layout.min.js b/layout.min.js index eb93bd3..5e4e566 100644 --- a/layout.min.js +++ b/layout.min.js @@ -1,5 +1,6 @@ -(function(c){function x(a,b,d){for(var q=0,g=d.length;qf.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[],f=h[1]||"",h=h[2]||"0",z="msie"==!f|| -8!=parseInt(h,10),D="mozilla"==f,w=window.requestAnimationFrame,k=window.cancelAnimationFrame||window.cancelRequestAnimationFrame,f=["ms","moz","webkit","o"],h=0;he.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],e=n[1]||"",n=n[2]||"0",A="msie"==!e||8!=parseInt(n,10),E="mozilla"==e,w=window.requestAnimationFrame,g=window.cancelAnimationFrame||window.cancelRequestAnimationFrame,x=["ms","moz","webkit","o"],p=0;p body_2nd_x || body_1st_y > body_2nd_y) { @@ -259,6 +260,11 @@ }; // EO Manager + // expose ua info + Manager.ua = { + 'browser': browser, + 'version': version + }; // static global function Manager.config = function (key, value)