diff options
author | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:16:17 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-09-30 19:16:17 -0600 |
commit | 336ac8ef52c3d0880e503f322d381709d4b18ec7 (patch) | |
tree | 42e2454996b70763745fd1449a03f020697f3246 | |
parent | 1538c0fe5b9fcb6a92ede04698274024b8c68e92 (diff) | |
download | boringcactus.com-336ac8ef52c3d0880e503f322d381709d4b18ec7.tar.gz boringcactus.com-336ac8ef52c3d0880e503f322d381709d4b18ec7.zip |
this is what i get for having no staging environment
-rw-r--r-- | assets/site.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/site.js b/assets/site.js index 2614c4c..c9bbde1 100644 --- a/assets/site.js +++ b/assets/site.js @@ -14,6 +14,6 @@ if (replaceWithEmailLink !== null) { newNode.innerText = 'email'; newNode.href = 'mailto:' + replaceWithEmailLink.querySelector('code') - .innerText.replace('<this domain>', location.hostname); + .innerText.replace('<this domain>', location.hostname.replace(/^www\./, "")); replaceWithEmailLink.replaceWith(newNode); } |