Skip to content

Commit 021fc99

Browse files
author
pandamicro
committed
fix we chat browser detection issue
1 parent cff0147 commit 021fc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCBoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ var _initSys = function () {
17421742
sys.browserType = sys.BROWSER_TYPE_UNKNOWN;
17431743
/* Determine the browser type */
17441744
(function(){
1745-
var typeReg1 = /mqqbrowser|sogou|qzone|liebao|micromessenger|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|trident|miuibrowser/i;
1745+
var typeReg1 = /micromessenger|mqqbrowser|sogou|qzone|liebao|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|trident|miuibrowser/i;
17461746
var typeReg2 = /qqbrowser|chrome|safari|firefox|opr|oupeng|opera/i;
17471747
var browserTypes = typeReg1.exec(ua);
17481748
if(!browserTypes) browserTypes = typeReg2.exec(ua);

0 commit comments

Comments
 (0)