En este momento he agregado un enlace de sesión en las propiedades de descripción. Quiero que el enlace de la sesión se muestre en el enlace para unirse en el calendario de Outlook y Teams. ¿Alguien se ha encontrado en la misma situación? Por favor, hágame saber si puedo lograr esto o no.
let descriptionLink = <div> <div> ${this.state.eventDescription}</div> <a href=${this.state.sessionLink}>Join Session</a> </div> ; let url = [ "BEGIN:VCALENDAR", "VERSION:2.0", "BEGIN:VEVENT", "DTSTART:" + this.formatDate(this.state.startTime), "DTEND:" + this.formatDate(this.state .endTime), "SUMMARY:" + this.state.eventTitle, "LOCATION:" + this.state.location, "X-ALT-DESC;FMTTYPE=text/html:" + descriptionLink, "BEGIN:VALARM", " TRIGGER:-PT15M", "REPETIR:1", "DURACIÓN:PT15M", "ACCIÓN:PANTALLA", "DESCRIPCIÓN:Recordatorio", "FIN:VALARM", "FIN:VEVENT", "FIN:VCALENDAR" ].join ("\norte");
let blob = new Blob([url], { type: 'text/calendar;charset=utf-8' }); if (/msie\s|trident\/|edge\//i.test(window.navigator.userAgent)) { // Open/Save link in IE and Edge let tt: any = window.navigator; tt.msSaveBlob(blob, 'download.ics'); } else { // Open/Save link in Modern Browsers window.open(encodeURI("data:text/calendar;charset=utf8," + url)); }