Skip to content

Commit 022dd82

Browse files
committed
fix: remove share link callback
1 parent edfc3bc commit 022dd82

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/containers/app/app.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,10 @@ class App extends Component {
176176

177177
shareSession() {
178178
if (navigator.share) {
179-
navigator
180-
.share({
181-
title: this.t('root.title'),
182-
url: Location.getGameLink(this.sessionId),
183-
})
184-
.then(() => {
185-
toast.success(this.t('root.linkCopied'));
186-
})
187-
.catch(() => {
188-
toast.error(this.t('error.linkNotCopied'));
189-
});
179+
navigator.share({
180+
title: this.t('root.title'),
181+
url: Location.getGameLink(this.sessionId),
182+
});
190183
} else {
191184
const isCopied = copy(Location.getGameLink(this.sessionId));
192185
if (isCopied) {

0 commit comments

Comments
 (0)