nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 429 forks source link

Any method is there which can return popup is blocked? #525

Open AnshuBansal6 opened 4 months ago

AnshuBansal6 commented 4 months ago

While sharing on safari browser, we have default popup as blocked. Now there is no method returning that popup is blocked and that is the reason its not sharing.

Can you help

HawkeyePierce89 commented 4 months ago

I think probably we need some onOpen method, like

<TwitterIcon onOpen={(popup) => {
  // check popup variable which is result of window.open
}} />