Link iCalendar files with the webcal:// protocol

This commit is contained in:
2022-05-23 12:21:04 +02:00
parent 7c23a6b409
commit 659bcb8f51

View File

@@ -61,6 +61,12 @@
}); });
} }
}); });
[...document.querySelectorAll(".link a")].forEach(link => {
if (link.href.endsWith(".ics")) {
link.href = link.href.replace(/https?/, "webcal");
}
})
</script> </script>
</div> </div>
</body> </body>