Events

var ready = (callback) => { if (document.readyState != "loading") callback(); else document.addEventListener("DOMContentLoaded", callback); } ready(() => { window.calendar?.setOption('eventClick', function(e) { window.location = e.event._def.extendedProps.permalink }); });