From 3378384bc5b22402e46d0a8744e2758cb6e6bb70 Mon Sep 17 00:00:00 2001 From: stephanzwicknagl Date: Thu, 28 Aug 2025 00:44:03 -0400 Subject: [PATCH] Fix download of ICS file use mimetype `txt/calendar` when downloading the .ics file. Resolves lowercasename#190 --- views/event.handlebars | 2 +- views/eventgroup.handlebars | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/event.handlebars b/views/event.handlebars index f0a12be9..06899ce3 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -505,7 +505,7 @@ window.eventData = {{{ json jsonData }}}; } // From https://davidwalsh.name/javascript-download - function downloadFile(data, fileName, type="text/plain") { + function downloadFile(data, fileName, type="text/calendar") { // Create an invisible A element const a = document.createElement("a"); a.style.display = "none"; diff --git a/views/eventgroup.handlebars b/views/eventgroup.handlebars index 5fcc6c2f..5d8e1082 100755 --- a/views/eventgroup.handlebars +++ b/views/eventgroup.handlebars @@ -312,7 +312,7 @@ window.groupData = {{{ json jsonData }}}; }) // From https://davidwalsh.name/javascript-download - function downloadFile(data, fileName, type="text/plain") { + function downloadFile(data, fileName, type="text/calendar") { // Create an invisible A element const a = document.createElement("a"); a.style.display = "none";