Improve tunnel "email" messaging (#1773)

This commit is contained in:
Tim Wilkinson 2024-12-22 13:24:40 -08:00 committed by GitHub
parent f48d52a614
commit 0c7d6a514a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ This value is used by default, but each tunnel may overide it.
const type = htmx.find(t, "div[data-type]").dataset.type;
if (name.validity.valid && passwd.validity.valid && network.validity.valid) {
const blob = new Blob([
`<h2>Connection details for ${name.value}</h2>
`<h2>${type == "ls" ? "Legacy" : "Wireguard"} Client connection details for ${name.value}</h2>
<div>Name: ${name.value}</div>
<div style="white-space:nowrap">${type == "ls" ? "Password" : "Wireguard key"}: ${passwd.value}</div>
<div>Network: ${network.value}</div>