Skip to content

Commit 7fdfa45

Browse files
committed
fix restore email address function
1 parent ef7f379 commit 7fdfa45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

themes/tfsci/assets/main.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function onRestoreEmailAddress() {
5050
for (const link of content.querySelectorAll<HTMLAnchorElement>('a[href^="mailto:"]')) {
5151
const address = atob(link.pathname)
5252
link.href = `mailto:${address}`
53-
link.textContent = address
53+
if (link.textContent === '') {
54+
link.textContent = address
55+
}
5456
}
5557
}
5658

0 commit comments

Comments
 (0)