Skip to content

Commit

Permalink
Merge pull request #77 from gnosis/fix-staderlabs
Browse files Browse the repository at this point in the history
fix connection to staderlabs
  • Loading branch information
jfschwarz authored Oct 17, 2023
2 parents aee461c + 5acf516 commit 0f5b6f7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions extension/src/bridge/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ export default class BridgeIframe extends EventEmitter {
}

// Some apps don't support generic injected providers, so we pretend to be MetaMask
isMetaMask =
window.location.hostname === 'app.stakewise.io' ||
window.location.hostname === 'app.aura.finance' ||
window.location.hostname === 'www.ankr.com'
isMetaMask = HOSTNAMES_REQUIRING_METAMASK.includes(window.location.hostname)
}

const HOSTNAMES_REQUIRING_METAMASK = [
'app.stakewise.io',
'app.aura.finance',
'www.ankr.com',
'www.staderlabs.com',
]

0 comments on commit 0f5b6f7

Please sign in to comment.