fix weixin open check bug. code review by LZF
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -90,7 +90,7 @@ function callpay(orderCode) { | @@ -90,7 +90,7 @@ function callpay(orderCode) { | ||
90 | 90 | ||
91 | 91 | ||
92 | function isWXOpen() { | 92 | function isWXOpen() { |
93 | - var ua = 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) === 'micromessenger') { |
96 | return true; | 96 | return true; |
-
Please register or login to post a comment