on2-dev / share-api-polyfill

A polyfill for the sharing that can be used in the desktop, too, so your users can share in their Twitter, Facebook, Messenger, LinkedIn, SMS, e-mail, print, Telegram or WhatsApp.
MIT License
262 stars 45 forks source link

Option to provide a selector to append to instead of body #166

Open 3zzy opened 1 year ago

3zzy commented 1 year ago

Currently the background and the share sheet appends to the body.

While it probably works for most users, but in our legacy CMS, we have smaller "apps" on the same page that need to be shared instead of the page itself so the ability to append the share sheet to a specific element would be great.

Thanks