(link: HTMLAnchorElement)
| 9 | |
| 10 | /** Keep the original URL on the element so that `shorten-links` can use it reliably #5890 */ |
| 11 | export function saveOriginalHref(link: HTMLAnchorElement): void { |
| 12 | link.dataset.originalHref ??= link.href; |
| 13 | } |
| 14 | |
| 15 | async function updateLink(link: HTMLAnchorElement): Promise<void> { |
| 16 | if (link.host !== location.host) { |
no outgoing calls
no test coverage detected