Bluesky app fork with some witchin' additions 馃挮
at 893dd78a00d82e4901b9ea8d66e28de35cffe9bd 10 lines 333 B view raw
1export function parseLinkingUrl(url: string): URL { 2 /* 3 * Hack: add a third slash to bluesky:// urls so that `URL.host` is empty and 4 * `URL.pathname` has the full path. 5 */ 6 if (url.startsWith('bluesky://') && !url.startsWith('bluesky:///')) { 7 url = url.replace('bluesky://', 'bluesky:///') 8 } 9 return new URL(url) 10}