Something went wrong. Try again.
Bluesky app fork with some witchin' additions 馃挮 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
333 B 路 10 lines
TypeScript
at twelve
1234567891011export function parseLinkingUrl(url: string): URL { /* * Hack: add a third slash to bluesky:// urls so that `URL.host` is empty and * `URL.pathname` has the full path. */ if (url.startsWith('bluesky://') && !url.startsWith('bluesky:///')) { url = url.replace('bluesky://', 'bluesky:///') } return new URL(url)}