1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-05 20:10:37 +00:00

rename h => attachment

This commit is contained in:
Zack Schuster 2018-07-06 11:07:19 -07:00
parent b95e72a376
commit 8c44910cf9

View File

@ -103,13 +103,13 @@ class Message {
header === 'attachment' &&
typeof headers[header] === 'object'
) {
const h = headers[header];
if (Array.isArray(h)) {
for (let i = 0, l = h.length; i < l; i++) {
this.attach(h[i]);
const attachment = headers[header];
if (Array.isArray(attachment)) {
for (let i = 0; i < attachment.length; i++) {
this.attach(attachment[i]);
}
} else {
this.attach(h);
this.attach(attachment);
}
} else if (header === 'subject') {
this.header.subject = mimeWordEncode(headers.subject);