From e0c2784b91d71010f21e2f9ea55bd1309db750e4 Mon Sep 17 00:00:00 2001 From: Joe Cellucci Date: Fri, 31 Jul 2020 10:30:58 -0500 Subject: [PATCH 1/2] fix: don't create blob until we need to --- src/utils/ics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From ecb4d43151caa3b4904dc70c5d1bb164e82a2769 Mon Sep 17 00:00:00 2001 From: Joe Cellucci Date: Fri, 31 Jul 2020 10:33:23 -0500 Subject: [PATCH 2/2] remove newline