diff options
author | cyfraeviolae <cyfraeviolae> | 2023-12-01 12:55:20 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2023-12-01 12:55:20 -0500 |
commit | 412e8d737c5da44502d44421fa1561ce34ea6989 (patch) | |
tree | 1a329da7a4a5eb8289c1d531b96975235041821a | |
parent | 550e5d277d36c0bb279c6a49a8e99b135dd9bdab (diff) |
copy
-rw-r--r-- | static/script.js | 3 |
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) { |