update tes isTrustWallet

pull/3454/head
yann300 2 years ago
parent 4910b1f873
commit beed0caf45
  1. 2
      apps/remix-ide/src/app/udapp/run-tab.js

@ -133,7 +133,7 @@ export class RunTab extends ViewPlugin {
// basic injected // basic injected
// if it's the trust wallet provider, we have a specific provider for that, see below // if it's the trust wallet provider, we have a specific provider for that, see below
if (window && window.ethereum && !window.ethereum.selectedProvider?.isTrustWallet) { if (window && window.ethereum && !(window.ethereum.isTrustWallet || window.ethereum.selectedProvider?.isTrustWallet)) {
const displayNameInjected = `Injected Provider${(window && window.ethereum && !(window.ethereum.providers && !window.ethereum.selectedProvider)) ? const displayNameInjected = `Injected Provider${(window && window.ethereum && !(window.ethereum.providers && !window.ethereum.selectedProvider)) ?
window.ethereum.isCoinbaseWallet || window.ethereum.selectedProvider?.isCoinbaseWallet ? ' - Coinbase' : window.ethereum.isCoinbaseWallet || window.ethereum.selectedProvider?.isCoinbaseWallet ? ' - Coinbase' :
window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? ' - Brave' : window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? ' - Brave' :

Loading…
Cancel
Save