diff --git a/src/utils/vidosResolver.ts b/src/utils/vidosResolver.ts index 2be26c8..25d5146 100644 --- a/src/utils/vidosResolver.ts +++ b/src/utils/vidosResolver.ts @@ -26,12 +26,7 @@ export class VidosResolver implements Resolvable { }, }); - if (resolutionResponse.ok) { - return resolutionResponse.json(); - } else if (resolutionResponse.headers.get("content-type")?.includes("application/json")) { - return resolutionResponse.json(); - } - throw new Error("Failed to resolve DID"); + return resolutionResponse.json(); } async getSupportedDidMethods(): Promise { @@ -44,4 +39,4 @@ export class VidosResolver implements Resolvable { } throw new Error("Failed to fetch supported DID methods"); } -} \ No newline at end of file +}