1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

feature: create Svelte component for showing status UI

This commit is contained in:
Ondřej Synáček
2020-12-20 14:29:21 +01:00
parent b28995aa1e
commit 290d7115d0
6 changed files with 45 additions and 22 deletions

View File

@@ -10,10 +10,15 @@ const getEventHTML = async (url) => {
formData.set('url', url)
try {
const request = new Request({ id: uuidv4() })
const request = new Request({
id: uuidv4(),
url,
})
requestStore.set(request)
const response = await postURL(formData)
const text = await response.text()
requestStore.set(null)
return text
} catch (error) {
requestStore.update((prevRequest) => {