MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / checkTabActive

Function checkTabActive

app/core/RPCMethods/RPCMethodMiddleware.ts:303–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 };
302
303 const checkTabActive = () => {
304 if (!tabId) return true;
305 const { browser } = store.getState();
306 if (tabId !== browser.activeTab)
307 throw providerErrors.userRejectedRequest();
308 };
309
310 const getSource = () => {
311 if (analytics?.isRemoteConn)

Callers 5

generateRawSignatureFunction · 0.85
startApprovalFlowFunction · 0.85
requestUserApprovalFunction · 0.85
getRpcMethodMiddlewareFunction · 0.85
wallet_watchAssetFunction · 0.85

Calls 1

getStateMethod · 0.45

Tested by

no test coverage detected