summaryrefslogtreecommitdiff
path: root/static/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/app.js')
-rw-r--r--static/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/app.js b/static/js/app.js
index eaac857..0215599 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -97,6 +97,7 @@ document.addEventListener('DOMContentLoaded', function () {
link.appendChild(element);
var range = document.createRange();
range.selectNode(element);
+ window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
link.removeChild(element);