diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 11:32:55 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 11:32:55 +0200 |
commit | 59d6c9a75ad0e5a485258d929031bd803c79f157 (patch) | |
tree | 7d7447b0f6aa7d534439ee8776b5c037990f7cd5 | |
parent | 6fa28f879780ad42e54a8a55e408ba7fff9cfb04 (diff) | |
download | wallet-core-59d6c9a75ad0e5a485258d929031bd803c79f157.tar.gz wallet-core-59d6c9a75ad0e5a485258d929031bd803c79f157.tar.bz2 wallet-core-59d6c9a75ad0e5a485258d929031bd803c79f157.zip |
add a fixm
-rw-r--r-- | packages/anastasis-core/src/index.ts | 9 | ||||
-rw-r--r-- | packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts index 15e06cb85..05fa4a49f 100644 --- a/packages/anastasis-core/src/index.ts +++ b/packages/anastasis-core/src/index.ts @@ -279,19 +279,22 @@ async function getProviderInfo( providerBaseUrl: string, ): Promise<AuthenticationProviderStatus> { // FIXME: Use a reasonable timeout here. - console.log("hi"); - let resp: Response; try { resp = await fetch(new URL("config", providerBaseUrl).href); } catch (e) { + console.warn( + "Encountered an HTTP error whilst trying to get the provider's config: ", + e, + ); return { status: "error", code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED, hint: "request to anastasis provider failed", }; } - if (resp.status >= 400) { + if (!resp.ok) { + console.warn("Got bad response code whilst getting provider config", resp); return { status: "error", code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED, diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx index 228186a2d..e38b91b12 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx @@ -132,6 +132,7 @@ export function AttributeEntryScreen(): VNode { secret will be safely stored. If you forget what you have entered or if there is a misspell you will be unable to recover your secret. <p> + {/* TODO: make this actually work reliably cross-browser lol (opens about:blank for me) */} <a onClick={saveAsPDF}>Save the personal information as PDF</a> </p> </ConfirmModal> |