Copy to clipboard method update

This commit is contained in:
Luis Aleixo 2021-10-27 16:12:42 +02:00
parent 894df7e43b
commit 4a19f9c52e

View file

@ -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);
}