Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function copyToClipboard(str: string): void {
sel.addRange(oldSelection);
} else {
el.select(); // Select the <textarea> content
document.execCommand("copy"); // Copy - only works as a result of a user action (e.g. click events)
navigator.clipboard.writeText(str); // Copy - only works as a result of a user action (e.g. click events)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indenting no longer matches.

document.body.removeChild(el); // Remove the <textarea> element
}
}
Expand Down