Instantly share code, notes, and snippets.

What would you like to do?
Web Share API Example
async handleClick (e) {
// feature detection
if ('share' in navigator) {
try {
await navigator.share({
title: 'Click-bait title #6314',
url: ''
} catch (err) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment