diff options
Diffstat (limited to 'assets/site.js')
-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); } |