From ca938912f7b1500ea15bb99ce797451caaba28b2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 13 Feb 2024 00:52:00 +0100 Subject: [PATCH] Fix export of mangrove private key on chromium based browsers, see #1775 --- src/UI/SpecialVisualizations.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index 64b3783b7..5f0d7451d 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -1171,7 +1171,7 @@ export default class SpecialVisualizations { }, { name: "href", - doc: "The URL to link to", + doc: "The URL to link to. Note that this will be URI-encoded before ", required: true, }, { @@ -1180,7 +1180,7 @@ export default class SpecialVisualizations { }, { name: "download", - doc: "If set, this link will act as a download-button. The contents of `href` will be offered for download; this parameter will act as the proposed filename", + doc: "Expects a string which denotes the filename to download the contents of `href` into. If set, this link will act as a download-button.", }, { name: "arialabel", @@ -1203,7 +1203,7 @@ export default class SpecialVisualizations { (tags) => new SvelteUIElement(Link, { text: Utils.SubstituteKeys(text, tags), - href: Utils.SubstituteKeys(href, tags), + href: Utils.SubstituteKeys(href, tags).replaceAll(/ /g, '%20') /* Chromium based browsers eat the spaces */, classnames, download: Utils.SubstituteKeys(download, tags), ariaLabel: Utils.SubstituteKeys(ariaLabel, tags),