From 07d18caff4906555c87c548659048b9b31bb0771 Mon Sep 17 00:00:00 2001 From: Rob De Feo Date: Mon, 15 Apr 2024 15:56:59 +0200 Subject: [PATCH] Update vidosResolver.ts --- src/utils/vidosResolver.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 +}