atproto explorer

fix localstorage constellation host

+3 -4
+3 -4
src/utils/api.ts
··· 4 4 import { DidDocument } from "@atcute/client/utils/did"; 5 5 import { createStore } from "solid-js/store"; 6 6 7 - localStorage.constellationHost = 8 - localStorage.constellationHost || "https://constellation.microcosm.blue"; 9 - 10 7 const didPDSCache: Record<string, string> = {}; 11 8 const [labelerCache, setLabelerCache] = createStore<Record<string, string>>({}); 12 9 const didDocCache: Record<string, DidDocument> = {}; ··· 69 66 cursor?: string, 70 67 limit?: number, 71 68 ) => { 72 - const url = new URL(localStorage.constellationHost); 69 + const url = new URL( 70 + localStorage.constellationHost || "https://constellation.microcosm.blue", 71 + ); 73 72 url.pathname = endpoint; 74 73 url.searchParams.set("target", target); 75 74 if (collection) {