From 12fe6dfa17ca104f236588dc0d31e2abf3dbc6bd Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 29 Aug 2020 18:31:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/mailymaily.js | 15 ++------------- src/html/component.html | 12 ++++++++---- 2 files changed, 10 insertions(+), 17 deletions(-) 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 @@