Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
at main 18 lines 457 B view raw
1/** 2 * This is used for our own Bluesky post embeds, and maybe other things. 3 * 4 * In the case of our embeds, `ref_src=embed`. Not sure if `ref_url` is used. 5 */ 6 7import * as env from '#/env' 8 9let refSrc = '' 10let refUrl = '' 11if (env.IS_WEB) { 12 const params = new URLSearchParams(window.location.search) 13 refSrc = params.get('ref_src') ?? '' 14 refUrl = decodeURIComponent(params.get('ref_url') ?? '') 15} 16 17export const src = refSrc 18export const url = refUrl