mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
fix: bring back download prompt after fetching event data
This commit is contained in:
@ -46,3 +46,12 @@ export const parseStartTimeFromiCalString = (text = '') => {
|
||||
return parsedDate.toString()
|
||||
}
|
||||
|
||||
export const promptDownload = (uri) => {
|
||||
const link = document.getElementById('current-download')
|
||||
|
||||
link.setAttribute('href', uri)
|
||||
link.setAttribute('download', 'download.ics')
|
||||
link.click()
|
||||
|
||||
link.setAttribute('href', '')
|
||||
}
|
||||
|
Reference in New Issue
Block a user