From 9bef462f3803a4f403c78206b9c81592f9b1a0bd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 9 Apr 2023 14:59:00 -0300 Subject: [PATCH] treat all unkown content type as plain text --- .../src/components/TermsOfService/utils.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/taler-wallet-webextension/src/components/TermsOfService/utils.ts b/packages/taler-wallet-webextension/src/components/TermsOfService/utils.ts index a106c3d85..391932574 100644 --- a/packages/taler-wallet-webextension/src/components/TermsOfService/utils.ts +++ b/packages/taler-wallet-webextension/src/components/TermsOfService/utils.ts @@ -59,15 +59,9 @@ function parseTermsOfServiceContent( } catch (e) { console.log(e); } - } else if (type === "text/plain") { - try { - const content = text; - return { type: "plain", content }; - } catch (e) { - console.log(e); - } } - return undefined; + const content = text; + return { type: "plain", content }; } export type TermsState = {