Copy to clipboard method update
This commit is contained in:
parent
894df7e43b
commit
4a19f9c52e
1 changed files with 2 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Reference in a new issue