Skip to content

Commit 7554bbd

Browse files
authored
Merge pull request #1142 from rust-lang/copy-is-copy
Actually copy to the clipboard
2 parents 3dea54d + c88d451 commit 7554bbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/frontend/Output/Gist.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const Copied: React.FC<CopiedProps> = ({ children, href }) => {
3838

3939
const startCopy = useCallback(() => {
4040
setCopied(true);
41+
window.navigator.clipboard.writeText(href);
4142

4243
setTimeout(() => {
4344
setCopied(false);

0 commit comments

Comments
 (0)