添加微信客户端中无法下载的消息
This commit is contained in:
parent
eece50c172
commit
bcad7bf467
|
@ -1,3 +1,5 @@
|
||||||
|
/*eslint-disable*/
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ReactDOMServer from 'react-dom/server'
|
import ReactDOMServer from 'react-dom/server'
|
||||||
import {getQrcodeData} from "../utils/qrcodeHandler";
|
import {getQrcodeData} from "../utils/qrcodeHandler";
|
||||||
|
@ -24,7 +26,11 @@ window.onload = function(){
|
||||||
}
|
}
|
||||||
function isWeiXin(){
|
function isWeiXin(){
|
||||||
const ua = window.navigator.userAgent.toLowerCase();
|
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 = [
|
const styleList = [
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
// QR8bitByte
|
// QR8bitByte
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
|
/*eslint-disable*/
|
||||||
|
|
||||||
function QR8bitByte(data) {
|
function QR8bitByte(data) {
|
||||||
this.mode = QRMode.MODE_8BIT_BYTE;
|
this.mode = QRMode.MODE_8BIT_BYTE;
|
||||||
this.data = data;
|
this.data = data;
|
||||||
|
|
Loading…
Reference in New Issue