Skip to content

Commit 3dc725b

Browse files
committed
Merge branch 'main' of github.com:on2-dev/share-api-polyfill
2 parents fb28afc + 56c23b3 commit 3dc725b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ navigator.share = navigator.share || (function () {
563563
break;
564564
}
565565
case 'twitter': {
566-
window.open(`http://twitter.com/share?text=${text}&url=${url}&hashtags=${hashtags || ''}`);
566+
window.open(`https://twitter.com/intent/tweet?text=${text}&url=${url}&hashtags=${hashtags || ''}`);
567567
break;
568568
}
569569
case 'linkedin': {

0 commit comments

Comments
 (0)