npm upgrade

This commit is contained in:
Dawid Dziurla
2020-12-16 18:58:31 +01:00
parent 2c5f24285f
commit 8be2ceac54
8 changed files with 621 additions and 130 deletions

View File

@ -230,9 +230,8 @@ class MailComposer {
amp.contentType = 'text/x-amp-html; charset=utf-8';
}
// only include the calendar alternative if there are no attachments
// otherwise you might end up in a blank screen on some clients
if (this.mail.icalEvent && !(this.mail.attachments && this.mail.attachments.length)) {
// NB! when including attachments with a calendar alternative you might end up in a blank screen on some clients
if (this.mail.icalEvent) {
if (
typeof this.mail.icalEvent === 'object' &&
(this.mail.icalEvent.content || this.mail.icalEvent.path || this.mail.icalEvent.href || this.mail.icalEvent.raw)