use file extension

even if there is no file extension no extra will be added (like a period .) because {{.FileExtension}} includes the "."
This commit is contained in:
2026-11-13 14:54:47 -05:00
parent a0519784ed
commit 16642c53f3
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ if (link && navigator.clipboard?.writeText) {
link.onclick = async (e) => {
e.preventDefault();
try {
await navigator.clipboard.writeText(`${location.origin}/${link.dataset.id}`);
await navigator.clipboard.writeText(`${location.origin}/${link.dataset.id}${link.dataset.extension}`);
link.textContent = "copied";
setTimeout(() => {
link.textContent = "copy link";