StatusActionBar: copy status.url --> status.uri

This commit is contained in:
Alex Gleason 2022-09-06 13:09:31 -05:00
parent 4ee9419402
commit 57b2527b55
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -301,12 +301,12 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
};
const handleCopy: React.EventHandler<React.MouseEvent> = (e) => {
const { url } = status;
const { uri } = status;
const textarea = document.createElement('textarea');
e.stopPropagation();
textarea.textContent = url;
textarea.textContent = uri;
textarea.style.position = 'fixed';
document.body.appendChild(textarea);