Authored by biao

fix weixin open check bug. code review by LZF

@@ -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;