fix restore email address function

pull/2/head
Septs 2022-11-29 15:07:23 +08:00
parent ef7f37960e
commit 7fdfa45f02
No known key found for this signature in database
GPG Key ID: 65144037AFA516E1
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ function onRestoreEmailAddress() {
for (const link of content.querySelectorAll<HTMLAnchorElement>('a[href^="mailto:"]')) {
const address = atob(link.pathname)
link.href = `mailto:${address}`
link.textContent = address
if (link.textContent === '') {
link.textContent = address
}
}
}