Automatically copy share link to clipboard

This commit is contained in:
Marcus Hill 2022-05-20 16:27:21 +01:00
parent 08245c3ef6
commit 7128f347b4
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@
document.getElementById("share_link_header").hidden = false;
document.getElementById("share_link").hidden = false;
document.getElementById("share_link").value = response;
// Copy link to clipboard
navigator.clipboard.writeText(response);
}
);
}