aboutsummaryrefslogtreecommitdiff
path: root/assets/site.js
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-09-30 19:16:17 -0600
committerMelody Horn <melody@boringcactus.com>2024-09-30 19:16:17 -0600
commit336ac8ef52c3d0880e503f322d381709d4b18ec7 (patch)
tree42e2454996b70763745fd1449a03f020697f3246 /assets/site.js
parent1538c0fe5b9fcb6a92ede04698274024b8c68e92 (diff)
downloadboringcactus.com-336ac8ef52c3d0880e503f322d381709d4b18ec7.tar.gz
boringcactus.com-336ac8ef52c3d0880e503f322d381709d4b18ec7.zip
this is what i get for having no staging environment
Diffstat (limited to 'assets/site.js')
-rw-r--r--assets/site.js2
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);
}