summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2023-12-01 12:55:20 -0500
committercyfraeviolae <cyfraeviolae>2023-12-01 12:55:20 -0500
commit412e8d737c5da44502d44421fa1561ce34ea6989 (patch)
tree1a329da7a4a5eb8289c1d531b96975235041821a
parent550e5d277d36c0bb279c6a49a8e99b135dd9bdab (diff)
copy
-rw-r--r--static/script.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/static/script.js b/static/script.js
index e15dc88..b754472 100644
--- a/static/script.js
+++ b/static/script.js
@@ -202,8 +202,7 @@ document.getElementById('new-board').addEventListener('click', function(evt) {
});
document.getElementById('copy-link').addEventListener('click', function(evt) {
- document.getElementById('url').select()
- document.execCommand('copy');
+ navigator.clipboard.writeText(generateUrl(currentBoard))
});
document.getElementById('clear').addEventListener('click', function(evt) {