AccountHeader: make profile share button work
This commit is contained in:
parent
7a89e1bb01
commit
013594444d
|
@ -158,6 +158,15 @@ class Header extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleShare = () => {
|
||||||
|
navigator.share({
|
||||||
|
text: `@${this.props.account.get('acct')}`,
|
||||||
|
url: this.props.account.get('url'),
|
||||||
|
}).catch((e) => {
|
||||||
|
if (e.name !== 'AbortError') console.error(e);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
makeMenu() {
|
makeMenu() {
|
||||||
const { account, intl, me, meAccount, features } = this.props;
|
const { account, intl, me, meAccount, features } = this.props;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue