web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

Metamask does not open on opera using web3modal

Open UsamaSaleem14 opened this issue 3 years ago • 1 comments

Hi,

I am using web3modal to connect with different wallets. On Mozilla I am able to connect with metamask but when I open my website on Opera GX browser (version: LVL4 (core: 89.0.4447.64)) it says that error: No CLV Wallet found. Kindly let me know how I can fix this.

Thanks

UsamaSaleem14 avatar Aug 06 '22 19:08 UsamaSaleem14

Same here "Error: No CLV Wallet found" with the version 1.9.8 of web3modal Its happening while running: const instance = await web3Modal.connect(); Browser: Opera Version: 89.0.4447.83

The current Workaround is a downgrade to the older Version: "web3modal": "1.9.7",

TomSeestern avatar Aug 07 '22 17:08 TomSeestern

@UsamaSaleem14 I got Opera to work in 1.9.9 by adding this

const isOpera = window.navigator.userAgent.indexOf("OPR") > -1 || window.navigator.userAgent.indexOf("Opera") > -1
let isOperaChromium = false
if(window.chrome !== null && isOpera) {
  isOperaChromium = true
}
const providers = {}

if (isOperaChromium) {
  // eslint-disable-next-line dot-notation
  providers['opera'] = {
    package: true,
  }
} else {
  // add the rest of the providers when using other browsers
  ...
}

However, ended up with two Opera buttons? Both of them work though. But not the Web3, it results in the "no CLV wallet found".

image

paintoshi avatar Nov 21 '22 08:11 paintoshi

With stable version 2.0.0 of Web3Modal now released, we are officially dropping support for version 1.x Due to this this issue/pr was marked for closing. It is highly recommended to upgrade as 2.x will be receiving further updates that will enable functionality for some of our newer sdks like auth and push as well as support for WalletConnect v2 (See this post about WalletConnect v1 being deprecated https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e)

If you need to continue using Web3Modal 1.x and require this feature/fix implemented, we suggest adding it via forking V1 branch.

xzilja avatar Jan 21 '23 16:01 xzilja