diff --git a/cara/apps/calculator/static/js/report.js b/cara/apps/calculator/static/js/report.js index e04fc9e8..29f9b907 100644 --- a/cara/apps/calculator/static/js/report.js +++ b/cara/apps/calculator/static/js/report.js @@ -536,11 +536,6 @@ function copy_clipboard(shareable_link) { $("#mobile_link").attr('title', 'Copied!') .tooltip('_fixTitle') .tooltip('show'); - - const el = document.createElement('textarea'); - el.value = shareable_link; - document.body.appendChild(el); - el.select(); - document.execCommand('copy'); - document.body.removeChild(el); + + navigator.clipboard.writeText(shareable_link); } \ No newline at end of file