Skip to content

Commit 554fd39

Browse files
authored
Update main.js
1 parent 876a520 commit 554fd39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ window.addEventListener("load", () => {
7676

7777
const year = document.getElementById("year");
7878
year.textContent = new Date().getFullYear();
79-
const [fn, ln] = document.getElementsByTagName("title")[0].text.split(/\s|'/g);
79+
const [ln, fn] = ['Serrette', 'Ben'];
8080
const eml_a = document.getElementById("email");
8181
if( eml_a ) {
8282
const eml = `${fn}.${ln}@outlook.com`.toLowerCase();
8383
eml_a.textContent = eml;
84-
eml_a.href = `mailto:${fn} ${ln}<${eml}>`;
84+
eml_a.href = `mailto:${fn}.${ln}<${eml}>`;
8585
}
8686

8787
document.getElementsByTagName("footer")[0].innerHTML += `<p>Last updated: <time id="last_updated" datetime=""></time></p>`

0 commit comments

Comments
 (0)