3 ms·
This is what I currently use on my blog and it works particularly well: navigator.share({ title: "hello", text: "World", url: window.location.hre
by foxfired 1y ago
This is what I currently use on my blog and it works particularly well:
navigator.share({
title: "hello",
text: "World",
url: window.location.href
});
Plus if the page has images, the browser will automatically use it.
- jeroenhd 1y agoThat will work for sharing (except on Firefox), but only Chromium support actually receiving these share events, which is half the spec.