@@ -439,19 +439,21 @@ const ShareCard = ({ app, shareCardRef }) => {
439439 const shareToTwitter = ( ) => {
440440 const text = `Install ${ app . name } instantly with winget.\nGet it on Winstall:\n${ shareUrl } \n#winget #winstall` ;
441441 const link = `https://twitter.com/intent/tweet?text=${ encodeURIComponent ( text ) } ` ;
442- window . open ( link , '_blank' ) ;
442+ window . open ( link , '_blank' , 'width=640,height=480,resizable=yes,scrollbars=yes,status=yes' ) ;
443443 } ;
444444
445445 const shareToFacebook = ( ) => {
446446 const quote = `Install ${ app . name } instantly with winget.\nGet it on Winstall:\n${ shareUrl } ` ;
447447 const link = `https://www.facebook.com/sharer/sharer.php?u=${ encodeURIComponent ( shareUrl ) } "e=${ encodeURIComponent ( quote ) } ` ;
448- window . open ( link , '_blank' ) ;
448+ // const link = `https://www.facebook.com/share.php?u=${encodeURIComponent(shareUrl)}"e=${encodeURIComponent(quote)}`;
449+ window . open ( link , '_blank' , 'width=640,height=480,resizable=yes,scrollbars=yes,status=yes' ) ;
449450 } ;
450451
451452 const shareToLinkedIn = ( ) => {
452- const summary = `Install ${ app . name } instantly with winget.\nGet it on Winstall:\n${ shareUrl } \n#winget #winstall` ;
453- const link = `https://www.linkedin.com/sharing/share-offsite/?url=${ encodeURIComponent ( shareUrl ) } &summary=${ encodeURIComponent ( summary ) } ` ;
454- window . open ( link , '_blank' ) ;
453+ // const quote = `Install ${app.name} instantly with winget.\nGet it on Winstall:\n${shareUrl}`;
454+ // const link = `https://www.linkedin.com/shareArticle/?url=${encodeURIComponent(shareUrl)}&summary=${encodeURIComponent(quote)}&mini=true`;
455+ const link = `https://www.linkedin.com/sharing/share-offsite/?url=${ encodeURIComponent ( shareUrl ) } &mini=true` ;
456+ window . open ( link , '_blank' , 'width=640,height=480,resizable=yes,scrollbars=yes,status=yes' ) ;
455457 } ;
456458
457459 return (
0 commit comments