Riff / Built on the open web / Interface

Web Share

Opens the system share sheet with the track's title and the post link.

Now Playing on a phone: the cover, the title and artist, a seek bar, and the play controls
The Share button opens the phone's share sheet.

How Riff uses it

The Share chip in Now Playing calls navigator.share() with the track title and the post's URL. A rejected promise from dismissing the sheet is swallowed.

Why

On a phone the system sheet is how people send a link to Messages or another app.

Without it

Falls through to the clipboard and a Copied toast.

Where

Links open the source at the commit this page was published from.

Reference: Web Share on MDN.