From 336ac8ef52c3d0880e503f322d381709d4b18ec7 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 30 Sep 2024 19:16:17 -0600 Subject: this is what i get for having no staging environment --- assets/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') 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('', location.hostname); + .innerText.replace('', location.hostname.replace(/^www\./, "")); replaceWithEmailLink.replaceWith(newNode); } -- cgit v1.2.3