Permalink
Browse files

Use HTTPS for Twitter/Facebook sharers

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 c1207f0e52ad458b91ffca06c26812334f0bf330
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/share.js
@@ -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);

0 comments on commit c1207f0

Please sign in to comment.