From 79a735566881725b000051aa702f6be3fa9d9c73 Mon Sep 17 00:00:00 2001 From: xylophonez Date: Mon, 8 Jun 2026 19:03:47 +0100 Subject: [PATCH] Bind fetch for browser reference resolution --- src/lib.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.ts b/src/lib.ts index adba96f..b9e9719 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -93,7 +93,10 @@ const fetchManifest = async (manifestTxId: string): Promise<{ const resolveReferenceManifestTxId = async (): Promise => { if (!MANIFEST_REFERENCE_NAME) return ""; - const names = new ReferenceClient({ gateway: ARWEAVE_GATEWAY }); + const names = new ReferenceClient({ + gateway: ARWEAVE_GATEWAY, + fetch: (...args) => fetch(...args) + }); const value = await names.resolveName(MANIFEST_REFERENCE_NAME); if (typeof value !== "string" || value.length === 0) { throw new Error(`Reference ${MANIFEST_REFERENCE_NAME} did not resolve to a manifest id`);