fix ua detect bug. code review by LZF
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -92,7 +92,7 @@ function callpay(orderCode) { | @@ -92,7 +92,7 @@ function callpay(orderCode) { | ||
92 | function isWXOpen() { | 92 | function isWXOpen() { |
93 | var ua = window.navigator.userAgent.toLowerCase(); | 93 | var ua = window.navigator.userAgent.toLowerCase(); |
94 | 94 | ||
95 | - if (ua.match(/MicroMessenger/i) === 'micromessenger') { | 95 | + if (ua.match(/MicroMessenger/i).toString() === 'micromessenger') { |
96 | return true; | 96 | return true; |
97 | } else { | 97 | } else { |
98 | return false; | 98 | return false; |
-
Please register or login to post a comment