Skip to content

Commit

Permalink
Use HTTPS for Twitter/Facebook sharers
Browse files Browse the repository at this point in the history
As long as I was touching the share code, it seemed silly to leave plain
HTTP links in there.
  • Loading branch information
dgw committed Jan 14, 2018
1 parent df0f2ae commit c1207f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $(document).ready(function(){
function update_share() {
var text = encodeURIComponent( $('#tweet_body').val() );
var url = encodeURIComponent( $('#copylink').val() );
var tw = 'http://twitter.com/intent/tweet?status='+text;
var fb = 'http://www.facebook.com/share.php?u='+url ;
var tw = 'https://twitter.com/intent/tweet?status='+text;
var fb = 'https://www.facebook.com/share.php?u='+url ;
$('#share_tw').attr('href', tw);
$('#share_fb').attr('href', fb);

Expand Down

0 comments on commit c1207f0

Please sign in to comment.