diff --git a/src/UI/Base/Copyable.svelte b/src/UI/Base/Copyable.svelte index a31b1afa9..503f96227 100644 --- a/src/UI/Base/Copyable.svelte +++ b/src/UI/Base/Copyable.svelte @@ -12,10 +12,12 @@ export let state: ThemeViewState = undefined async function shareCurrentLink() { + const title = state?.theme?.title?.txt ?? "MapComplete"; + const textToShow = state?.theme?.description?.txt ?? "" await navigator.share({ - title: Translations.W(state.layout.title)?.ConstructElement().textContent ?? "MapComplete", - text: Translations.W(state.layout.description)?.ConstructElement().textContent ?? "", - url: text, + title, + text: textToShow, + url: text, // We show some 'text'-content, which _probably_ is a valid URL }) }