diff options
author | Dante Catalfamo | 2020-11-06 11:10:17 -0500 |
---|---|---|
committer | Dante Catalfamo | 2020-11-06 11:10:17 -0500 |
commit | b380d270d25329d65bfe4fed87b63c3911bca764 (patch) | |
tree | 357b27427310e002ef4415182cef676b33bc626f /content | |
parent | 675ff57c2e1959070ccf0260a74f080f6fb6d383 (diff) | |
download | blog-b380d270d25329d65bfe4fed87b63c3911bca764.tar.gz blog-b380d270d25329d65bfe4fed87b63c3911bca764.tar.bz2 blog-b380d270d25329d65bfe4fed87b63c3911bca764.zip |
About: Trim newline from decoded email
Diffstat (limited to 'content')
-rw-r--r-- | content/about/email.js | 2 |
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; } |