Skip to content

Commit

Permalink
fix: the clipboard.ts for copying failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdy666 committed Apr 29, 2024
1 parent 236ca63 commit 0159c8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/src/utils/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function copy(text: string) {
textarea.select();
try {
document.execCommand("copy");
document.body.removeChild(textarea);
resolve();
} catch (e) {
document.body.removeChild(textarea);
Expand Down

0 comments on commit 0159c8d

Please sign in to comment.