Skip to content

Commit

Permalink
code fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkencoresky committed Sep 8, 2022
1 parent 7d3a672 commit 06ba8a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ exports.shareOnMobile = function ({ url, title, image }) {
return;
}

var shareData = { text: title };
if (title) {
shareData.title = title;
}
var shareData = { text: title, title };
if (url) {
shareData.url = url;
}
Expand Down

0 comments on commit 06ba8a4

Please sign in to comment.