Skip to content

Commit

Permalink
updated 360浏览器误判修复
Browse files Browse the repository at this point in the history
  • Loading branch information
mumuy committed Mar 19, 2018
1 parent 0dde38b commit 615dc43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
break;
}
}
if(!match['360SE']){
var chrome_vision = u.replace(/^.*Chrome\/([\d]+).*$/, '$1');
if(!match['360SE']&&chrome_vision>36){
match['360EE'] = true;
}
}
Expand Down Expand Up @@ -235,12 +236,12 @@
},
'360SE': function(){
var hash = {'55':'9.1','45':'8.1','42':'8.0','31':'7.0','21':'6.3'};
var chrome_vision = navigator.userAgent.replace(/^.*Chrome\/([\d]+).*$/, '$1');
var chrome_vision = u.replace(/^.*Chrome\/([\d]+).*$/, '$1');
return hash[chrome_vision]||'';
},
'360EE': function(){
var hash = {'63':'9.5','55':'9.0','50':'8.7','30':'7.5'};
var chrome_vision = navigator.userAgent.replace(/^.*Chrome\/([\d]+).*$/, '$1');
var chrome_vision = u.replace(/^.*Chrome\/([\d]+).*$/, '$1');
return hash[chrome_vision]||'';
},
'Maxthon': function () {
Expand Down

0 comments on commit 615dc43

Please sign in to comment.