Closed mmccall0813 closed 1 year ago
Good point! For future reference, it's worth noting I also tried using a polyfill, but the only popular one I found had a compatibility issues when copying that prefixed the share title (or undefined
if it's missing) to the URL. Fixed this in #31.
It's worth noting Firefox isn't supported anyway (downloading files doesn't work) so I'm not sure if this is considered a bug - but since this is an easy fix and there are probably some use cases where this functionality would be needed, I don't see any reason not to add it.
Fixed in #31.
when sharing on firefox, i just get an error saying
navigator.share is not a function
. after doing some googling, i found that only a handful of browsers supportnavigator.share
, firefox not being one of them. you should probably confirm thatnavigator.share
exists, if not, copy to clipboard