release v0.2.8

This commit is contained in:
Matteo Manzinello
2019-05-10 16:27:28 +02:00
parent 1970bb1ad1
commit 70662fee62
5 changed files with 22 additions and 16 deletions

View File

@@ -29,7 +29,8 @@ mailgoInit = () => {
mailgo.href
.split("?")[0]
.split(MAILTO)[1]
.trim());
.trim()
);
mailtoHref = mailgo.href;
url = new URL(mailtoHref);
@@ -132,8 +133,9 @@ mailgoInit = () => {
// Gmail
let gmail = document.createElement("a");
gmail.href = "https://mail.google.com/mail?extsrc=mailto&url="
+ encodeURIComponent(mailtoHref);
gmail.href =
"https://mail.google.com/mail?extsrc=mailto&url=" +
encodeURIComponent(mailtoHref);
gmail.classList.add("mailgo-open");
gmail.classList.add("gmail");
let gmailContent = document.createTextNode("open in ");
@@ -149,8 +151,9 @@ mailgoInit = () => {
// Outlook
let outlook = document.createElement("a");
outlook.href =
"https://outlook.office.com/owa/?rru=compose&to="
+ encodeURIComponent(mail) + url.search.replace(/^[$]/, '&');
"https://outlook.office.com/owa/?rru=compose&to=" +
encodeURIComponent(mail) +
url.search.replace(/^[$]/, "&");
outlook.classList.add("mailgo-open");
outlook.classList.add("outlook");
let outlookContent = document.createTextNode("open in ");