From 4f555a61eec5fe256d6b9e463bb75da3b03dbaee Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Mon, 30 Sep 2024 10:15:35 +0200 Subject: [PATCH] generally impersonate metamask --- extension/src/bridge/InjectedProvider.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/extension/src/bridge/InjectedProvider.ts b/extension/src/bridge/InjectedProvider.ts index 3367d492..7a3ecc21 100644 --- a/extension/src/bridge/InjectedProvider.ts +++ b/extension/src/bridge/InjectedProvider.ts @@ -131,15 +131,5 @@ export default class InjectedProvider extends EventEmitter { } // Some apps don't support generic injected providers, so we pretend to be MetaMask - isMetaMask = HOSTNAMES_REQUIRING_METAMASK.includes(window.location.hostname) + isMetaMask = true } - -const HOSTNAMES_REQUIRING_METAMASK = [ - 'v2.stakewise.io', - 'app.aura.finance', - 'www.ankr.com', - 'www.staderlabs.com', - 'metavault.trade', - 'quickswap.exchange', - 'app.foundance.org', -]