forked from MapComplete/MapComplete
Fix export of mangrove private key on chromium based browsers, see #1775
This commit is contained in:
parent
9b78838745
commit
ca938912f7
1 changed files with 3 additions and 3 deletions
|
@ -1171,7 +1171,7 @@ export default class SpecialVisualizations {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "href",
|
name: "href",
|
||||||
doc: "The URL to link to",
|
doc: "The URL to link to. Note that this will be URI-encoded before ",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1180,7 +1180,7 @@ export default class SpecialVisualizations {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "download",
|
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",
|
name: "arialabel",
|
||||||
|
@ -1203,7 +1203,7 @@ export default class SpecialVisualizations {
|
||||||
(tags) =>
|
(tags) =>
|
||||||
new SvelteUIElement(Link, {
|
new SvelteUIElement(Link, {
|
||||||
text: Utils.SubstituteKeys(text, tags),
|
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,
|
classnames,
|
||||||
download: Utils.SubstituteKeys(download, tags),
|
download: Utils.SubstituteKeys(download, tags),
|
||||||
ariaLabel: Utils.SubstituteKeys(ariaLabel, tags),
|
ariaLabel: Utils.SubstituteKeys(ariaLabel, tags),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue