tangled
alpha
login
or
join now
t1c.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atproto explorer
0
fork
atom
overview
issues
pulls
pipelines
fix localstorage constellation host
handle.invalid
1 year ago
0219ef6e
4ee11b1f
+3
-4
1 changed file
expand all
collapse all
unified
split
src
utils
api.ts
+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
7
-
localStorage.constellationHost =
8
8
-
localStorage.constellationHost || "https://constellation.microcosm.blue";
9
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
72
-
const url = new URL(localStorage.constellationHost);
69
69
+
const url = new URL(
70
70
+
localStorage.constellationHost || "https://constellation.microcosm.blue",
71
71
+
);
73
72
url.pathname = endpoint;
74
73
url.searchParams.set("target", target);
75
74
if (collection) {