diff --git a/dist/mailymaily.js b/dist/mailymaily.js index 3ce41f8..152415b 100644 --- a/dist/mailymaily.js +++ b/dist/mailymaily.js @@ -105,7 +105,6 @@ var mailymailyApp = mailymailyApp || {}; */ options.buttonText2 = 'Outlook Web'; - /** * Text for button 4. * @type {String} @@ -221,7 +220,7 @@ var mailymailyApp = mailymailyApp || {}; */ app.buildModal = function() { var modal = document.createElement('div'); - var markup = `
${options.title}
×
`; + var markup = `
${options.title}
×
`; markup = markup.replace(/mailymaily/g, app.prefix()); modal.setAttribute('id', app.prefix('-modal')); modal.setAttribute('class', app.prefix('-modal')); @@ -284,17 +283,7 @@ var mailymailyApp = mailymailyApp || {}; var body = app.getLinkField(link, 'body'); var gmail = document.getElementById(app.prefix('-button-1')); - gmail.href = - 'https://mail.google.com/mail/?view=cm&fs=1&to=' + - email + - '&su=' + - subject + - '&cc=' + - cc + - '&bcc=' + - bcc + - '&body=' + - body; + gmail.href = `https://mail.google.com/mail/?view=cm&fs=1&to=${email}&su=${subject}&cc=${cc}&bcc=${bcc}&body=${body}`; var outlook = document.getElementById(app.prefix('-button-2')); outlook.href = `https://outlook.office.com/owa/?path=/mail/action/compose&to=${email}&subject=${subject}&body=${body}`; diff --git a/src/html/component.html b/src/html/component.html index a414f67..1327e6d 100644 --- a/src/html/component.html +++ b/src/html/component.html @@ -7,19 +7,22 @@
- ${options.buttonIcon1}${options.buttonText1} + ${options.buttonIcon1} + ${options.buttonText1}
- ${options.buttonIcon2}${options.buttonText2} + ${options.buttonIcon2} + ${options.buttonText2}
- ${options.buttonIcon4}${options.buttonText4} + ${options.buttonIcon4} + ${options.buttonText4}
@@ -27,7 +30,8 @@