remove problem chars from browser update

This commit is contained in:
Sam 2013-04-02 11:07:41 +11:00
parent f6ec8e01ec
commit 028d3bd19f
1 changed files with 3 additions and 4 deletions

View File

@ -45,17 +45,16 @@ function getBrowser() {
var names={i:'Internet Explorer',f:'Firefox',o:'Opera',s:'Apple Safari',n:'Netscape Navigator', c:"Chrome", x:"Other"};
if (/like firefox|chromeframe|seamonkey|opera mini|meego|netfront|moblin|maemo|arora|camino|flot|k-meleon|fennec|kazehakase|galeon|android|mobile|iphone|ipod|ipad|epiphany|rekonq|symbian|webos/i.test(ua)) n="x";
else if (/trident.(\d+\.\d+);/.test(ua)) n="io";
 else if (/MSIE (\d+\.\d+);/.test(ua)) n="i";
else if (/MSIE (\d+\.\d+);/.test(ua)) n="i";
else if (/Chrome.(\d+\.\d+)/i.test(ua)) n="c";
else if (/Firefox.(\d+\.\d+)/i.test(ua)) n="f";
else if (/Version.(\d+.\d+).{0,10}Safari/i.test(ua)) n="s";
else if (/Version.(\d+.\d+).{0,10}Safari/i.test(ua)) n="s";
else if (/Safari.(\d+)/i.test(ua)) n="so";
else if (/Opera.*Version.(\d+\.?\d+)/i.test(ua)) n="o";
else if (/Opera.(\d+\.?\d+)/i.test(ua)) n="o";
else if (/Netscape.(\d+)/i.test(ua)) n="n";
else return {n:"x",v:0,t:names[n]};
if (n=="x") return {n:"x",v:0,t:names[n]};
v=new Number(RegExp.$1);
if (n=="so") {
v=((v<100) && 1.0) || ((v<130) && 1.2) || ((v<320) && 1.3) || ((v<520) && 2.0) || ((v<524) && 3.0) || ((v<526) && 3.2) ||4.0;
@ -172,4 +171,4 @@ op.onshow(this.op);
var $buoop = {vs:{i:8,f:13,o:10.6,s:4,n:9}, l:I18n.locale};
$bu=$buo($buoop);
})(this);
})(this);