remove direct method check
This commit is contained in:
parent
c81e5d0071
commit
c48e9b811a
@ -203,7 +203,8 @@ window.addEventListener('walletcb', (e) => {
|
||||
}
|
||||
});
|
||||
|
||||
const directMethod = new Set(['chainList', 'currentChain', 'exportWalletSecKey', 'formatPrice', 'tokenList']);
|
||||
// const directMethod = new Set(['chainList', 'currentChain', 'exportWalletSecKey', 'formatPrice', 'tokenList']);
|
||||
const directMethod = new Set([]);
|
||||
function callMethod(...args) {
|
||||
var methodName = args.shift();
|
||||
let funid = ((Math.random() * 100000 + Math.random() * 1000) | 0) + '';
|
||||
|
@ -47,6 +47,10 @@ const pages = {
|
||||
let res = await callMethod('currentChain');
|
||||
console.log(res);
|
||||
},
|
||||
tokenList: async function () {
|
||||
let res = await callMethod('tokenList');
|
||||
console.log(res);
|
||||
},
|
||||
scanQRCode: async function () {
|
||||
let res = await callMethod('scanQRCode', 'scan');
|
||||
console.log(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user