w3c / web-share-target

Web API proposal for receiving shared data
https://w3c.github.io/web-share-target/
Other
191 stars 20 forks source link

Is there a way to feature-detect Web Share Target support? #104

Open tomayac opened 3 years ago

tomayac commented 3 years ago

The Web Share API can be feature-detected by checking for 'share' in navigator (and for 'canShare' in navigator if you need file sharing support), but is there a way to feature-detect the Web Share Target API? I'm not aware of one.

ewilligers commented 3 years ago

No, I do not think there is a way.

tomayac commented 3 years ago

Thanks for confirming. If we were to implement what https://github.com/w3c/web-share-target/issues/84 suggests, then there would be :-) I vouch for https://github.com/w3c/web-share-target/issues/84 independent from my Issue, but it would fix mine as a side effect.