Added 3rdparty library to clipboard
parent
4bac697cb1
commit
8f77b6b185
@ -1,8 +0,0 @@
|
|||||||
export default function copyToClipboard(str: string): void {
|
|
||||||
const el = document.createElement('textarea');
|
|
||||||
el.value = str;
|
|
||||||
document.body.appendChild(el);
|
|
||||||
el.select();
|
|
||||||
document.execCommand('copy');
|
|
||||||
document.body.removeChild(el);
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue