change: shorten link text in popup

This commit is contained in:
quenousimporte 2024-02-01 12:13:11 +01:00
parent 145a0b279f
commit b8eaaedf53
1 changed files with 5 additions and 1 deletions

View File

@ -772,7 +772,11 @@ function showlinkdialog(link)
a.setAttribute("href", link);
a.setAttribute("target", "_blank");
div.onclick = removelinkdialog;
a.innerText = link;
a.innerText = "Open on " +
link.replace("https://", "")
.replace("http://", "")
.replace("www.", "")
.replace(/\/.*/, "");
}
else
{