summaryrefslogtreecommitdiffstats
path: root/content/about/email.js
diff options
context:
space:
mode:
authorDante Catalfamo2020-11-06 11:10:17 -0500
committerDante Catalfamo2020-11-06 11:10:17 -0500
commitb380d270d25329d65bfe4fed87b63c3911bca764 (patch)
tree357b27427310e002ef4415182cef676b33bc626f /content/about/email.js
parent675ff57c2e1959070ccf0260a74f080f6fb6d383 (diff)
downloadblog-b380d270d25329d65bfe4fed87b63c3911bca764.tar.gz
blog-b380d270d25329d65bfe4fed87b63c3911bca764.tar.bz2
blog-b380d270d25329d65bfe4fed87b63c3911bca764.zip
About: Trim newline from decoded email
Diffstat (limited to 'content/about/email.js')
-rw-r--r--content/about/email.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/about/email.js b/content/about/email.js
index 02f3cee..72ac220 100644
--- a/content/about/email.js
+++ b/content/about/email.js
@@ -3,7 +3,7 @@
function emailDecode() {
const emailElement = document.querySelector("code.language-shell");
const emailB64 = emailElement.textContent.split('"')[1];
- const email = atob(emailB64);
+ const email = atob(emailB64).trim();
const mailto = `<a href="mailto:${email}">${email}</a>`;
emailElement.outerHTML = mailto;
}