[SOLVED] Prevent opening the Trust Wallet website

Please I need to prevent opening the trust wallet website link when I run moralis.authenticate especially when the Trustwallet is already opening.

Try the solution from this thread. It seems like a issue form wallet connect.

1 Like

WOW, Thanks. It work perfectly

document.addEventListener('visibilitychange', () => { 
    if (document.visibilityState === 'hidden') { 
        window.localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE'); 
    } 
});
1 Like