superhero-com / superhero-wallet

Superhero is a multi-blockchain wallet to manage crypto assets and navigate the web3 and DeFi space. Currently supporting Bitcoin, Ethereum and æternity blockchains.
https://wallet.superhero.com
ISC License
39 stars 38 forks source link

Possibility of distinguish the extension opened as popup and side panel #3200

Open peronczyk opened 3 months ago

peronczyk commented 3 months ago

This task is a follow up to this one: https://github.com/superhero-com/superhero-wallet/issues/2083

We need to have the possibility to know if user is opening the extension as the popup or side panel. This would allow us to open the confirmation modals to be open within the app instead of new windows when displaying as side panel.

peronczyk commented 2 months ago

I spent some time on trying to write logic that would check if user opened the extension popup or side panel and I didn't found any solution. I asked the community for help: https://stackoverflow.com/questions/78791831/detecting-if-browser-extension-is-running-as-popup-or-side-panel