atproto explorer pdsls.dev
atproto tool

fix localstorage constellation host

Changed files
+3 -4
src
utils
+3 -4
src/utils/api.ts
···
import { DidDocument } from "@atcute/client/utils/did";
import { createStore } from "solid-js/store";
-
localStorage.constellationHost =
-
localStorage.constellationHost || "https://constellation.microcosm.blue";
-
const didPDSCache: Record<string, string> = {};
const [labelerCache, setLabelerCache] = createStore<Record<string, string>>({});
const didDocCache: Record<string, DidDocument> = {};
···
cursor?: string,
limit?: number,
) => {
-
const url = new URL(localStorage.constellationHost);
url.pathname = endpoint;
url.searchParams.set("target", target);
if (collection) {
···
import { DidDocument } from "@atcute/client/utils/did";
import { createStore } from "solid-js/store";
const didPDSCache: Record<string, string> = {};
const [labelerCache, setLabelerCache] = createStore<Record<string, string>>({});
const didDocCache: Record<string, DidDocument> = {};
···
cursor?: string,
limit?: number,
) => {
+
const url = new URL(
+
localStorage.constellationHost || "https://constellation.microcosm.blue",
+
);
url.pathname = endpoint;
url.searchParams.set("target", target);
if (collection) {