add "injected" even if no provider

pull/5370/head
yann300 2 years ago committed by Aniket
parent 82f40798ec
commit 99a5613a9c
  1. 3
      apps/remix-ide/src/app/udapp/run-tab.js

@ -139,6 +139,9 @@ export class RunTab extends ViewPlugin {
window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? ' - Brave' : window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? ' - Brave' :
window.ethereum.isMetaMask || window.ethereum.selectedProvider?.isMetaMask ? ' - MetaMask' : '' : ''}` window.ethereum.isMetaMask || window.ethereum.selectedProvider?.isMetaMask ? ' - MetaMask' : '' : ''}`
await addProvider('injected', displayNameInjected, true, false) await addProvider('injected', displayNameInjected, true, false)
} else if (window && !window.ethereum) {
// we still add "injected" if there's no provider (just so it's visible to the user).
await addProvider('injected', 'Injected Provider', true, false)
} }
if (window && window.trustwallet) { if (window && window.trustwallet) {

Loading…
Cancel
Save