Skip to content

Commit

Permalink
fix: remove share link callback
Browse files Browse the repository at this point in the history
  • Loading branch information
avlyalin committed Jun 14, 2020
1 parent edfc3bc commit 022dd82
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/containers/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,10 @@ class App extends Component {

shareSession() {
if (navigator.share) {
navigator
.share({
title: this.t('root.title'),
url: Location.getGameLink(this.sessionId),
})
.then(() => {
toast.success(this.t('root.linkCopied'));
})
.catch(() => {
toast.error(this.t('error.linkNotCopied'));
});
navigator.share({
title: this.t('root.title'),
url: Location.getGameLink(this.sessionId),
});
} else {
const isCopied = copy(Location.getGameLink(this.sessionId));
if (isCopied) {
Expand Down

0 comments on commit 022dd82

Please sign in to comment.