summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {