remove direct method check

This commit is contained in:
CounterFire2023 2023-12-13 19:30:46 +08:00
parent c81e5d0071
commit c48e9b811a
2 changed files with 6 additions and 1 deletions

View File

@ -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) + '';

View File

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