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:
+1
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user