fix: the clipboard.ts for copying failure.
This commit is contained in:
parent
236ca637f9
commit
0159c8d51d
@ -51,7 +51,6 @@ export function copy(text: string) {
|
|||||||
textarea.select();
|
textarea.select();
|
||||||
try {
|
try {
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
document.body.removeChild(textarea);
|
|
||||||
resolve();
|
resolve();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
document.body.removeChild(textarea);
|
document.body.removeChild(textarea);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user