diff --git a/footer.html b/footer.html index 58992d2..0a52902 100644 --- a/footer.html +++ b/footer.html @@ -61,6 +61,12 @@ }); } }); + + [...document.querySelectorAll(".link a")].forEach(link => { + if (link.href.endsWith(".ics")) { + link.href = link.href.replace(/https?/, "webcal"); + } + })