添加微信客户端中无法下载的消息

This commit is contained in:
ciaochaos 2020-05-03 17:49:33 +08:00
parent eece50c172
commit bcad7bf467
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/*eslint-disable*/
import React from "react";
import ReactDOMServer from 'react-dom/server'
import {getQrcodeData} from "../utils/qrcodeHandler";
@ -24,7 +26,11 @@ window.onload = function(){
}
function isWeiXin(){
const ua = window.navigator.userAgent.toLowerCase();
return ua.match(/MicroMessenger/i) === 'micromessenger';
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
}
const styleList = [

View File

@ -18,6 +18,8 @@
// QR8bitByte
//---------------------------------------------------------------------
/*eslint-disable*/
function QR8bitByte(data) {
this.mode = QRMode.MODE_8BIT_BYTE;
this.data = data;