diff --git a/src/components/EditForm.svelte b/src/components/EditForm.svelte index 7e44c13..1b31b9f 100644 --- a/src/components/EditForm.svelte +++ b/src/components/EditForm.svelte @@ -5,6 +5,7 @@ import { shareUrl, selectedLang } from '../store' import ComboBox from './ComboBox.svelte' import Icon from '@iconify/svelte' + import { goto } from '$app/navigation' type Language = { text: string @@ -80,6 +81,11 @@ function closeUrlInput() { isUrlInputVisible = false } + + async function goToPreview() { + await updateShareUrl() + goto($shareUrl) + }