diff --git a/src/utils/ics.js b/src/utils/ics.js index 700e2f76..745b59c5 100644 --- a/src/utils/ics.js +++ b/src/utils/ics.js @@ -102,11 +102,11 @@ export const getRrule = (recurrence) => { */ export const download = (title, data) => { const fileName = getFileName(title) - const blob = getBlob(data) if (window.hasOwnProperty('safari')) { safariFileSave(data, fileName) } else { + const blob = getBlob(data) FileSaver.saveAs(blob, fileName) } -} \ No newline at end of file +}