Link iCalendar files with the webcal:// protocol
This commit is contained in:
1 parent
7c23a6b409
commit
659bcb8f51
1 file changed
+6
@@ -61,6 +61,12 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
[...document.querySelectorAll(".link a")].forEach(link => {
|
||||
if (link.href.endsWith(".ics")) {
|
||||
link.href = link.href.replace(/https?/, "webcal");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user