BlueSky & more on desktop lazurite.stormlightlabs.org/
tauri rust typescript bluesky appview atproto solid
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 24 lines 627 B view raw
1const PENDING_EXPLORER_TARGET_KEY = "lazurite:explorer:pending-target"; 2 3export function queueExplorerTarget(target: string) { 4 const trimmed = target.trim(); 5 if (!trimmed || globalThis.window === undefined) { 6 return; 7 } 8 9 globalThis.sessionStorage.setItem(PENDING_EXPLORER_TARGET_KEY, trimmed); 10} 11 12export function consumeQueuedExplorerTarget() { 13 if (globalThis.window === undefined) { 14 return null; 15 } 16 17 const target = globalThis.sessionStorage.getItem(PENDING_EXPLORER_TARGET_KEY); 18 if (!target) { 19 return null; 20 } 21 22 globalThis.sessionStorage.removeItem(PENDING_EXPLORER_TARGET_KEY); 23 return target; 24}