commit cce5bdd535fd33dd8d65682c47994f2f8d06d19a
parent f7f015c5fcc4448762436e00b6fcd45357a0a69b
Author: Marc Stibane <marc@taler.net>
Date: Mon, 26 Feb 2024 21:43:20 +0100
Prepare HTML ToS
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift
@@ -51,6 +51,7 @@ public let LONGCURRENCY = "GOLDLATINUM" // 11 characters
public let PLAINTEXT = "text/plain"
public let MARKDOWN = "text/markdown"
+public let HTML = "text/html"
public let EXCHANGEBASEURL = "exchangeBaseUrl"
public let TALERURI = "talerUri"
diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
@@ -25,7 +25,7 @@ struct WithdrawTOSView: View {
func loadToS(_ language: String) async {
do {
if let exchangeBaseUrl {
- let acceptedFormat: [String] = [MARKDOWN, PLAINTEXT]
+ let acceptedFormat: [String] = [MARKDOWN, PLAINTEXT] // MARKDOWN, HTML, PLAINTEXT
let someTOS = try await model.loadExchangeTermsOfServiceM(exchangeBaseUrl,
acceptedFormat: acceptedFormat,
acceptLanguage: language)