Skip to content

Commit c98abe5

Browse files
authored
1 parent 7d61bcf commit c98abe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/share.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ navigator.share = navigator.share || (function () {
226226
reject('Invalid Params');
227227
}
228228

229-
const { title, url, fbId, hashtags } = data;
229+
const { title, url, fbId, hashtags, via } = data;
230230
const configs = {
231231
...{
232232
copy: true,
@@ -579,7 +579,7 @@ navigator.share = navigator.share || (function () {
579579
break;
580580
}
581581
case 'twitter': {
582-
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}&hashtags=${hashtags || ''}`);
582+
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}&hashtags=${hashtags || ''}&via=${via || ''}`);
583583
break;
584584
}
585585
case 'linkedin': {

0 commit comments

Comments
 (0)