Skip to content

Commit

Permalink
Release: v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalinas committed Aug 20, 2016
1 parent 9c46fa1 commit dd5d3a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "1.3.0",
"version": "1.3.1",
"main": [
"dist/jssocials.js",
"dist/jssocials.css",
Expand Down
12 changes: 4 additions & 8 deletions dist/jssocials.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jssocials - v1.3.0 - 2016-08-18
/*! jssocials - v1.3.1 - 2016-08-20
* http://js-socials.com
* Copyright (c) 2016 Artem Tabalin; Licensed MIT */
(function(window, $, undefined) {
Expand Down Expand Up @@ -449,21 +449,17 @@
label: "Like",
logo: "fa fa-facebook",
shareUrl: "https://facebook.com/sharer/sharer.php?u={url}",
countUrl: function() {
return "https://graph.facebook.com/fql?q=SELECT total_count FROM link_stat WHERE url='" + window.encodeURIComponent(this.url) + "'";
},
countUrl: "http://graph.facebook.com/?id={url}",
getCount: function(data) {
return (data.data.length && data.data[0].total_count) || 0;
return data.share && data.share.share_count || 0;
}
},

googleplus: {
label: "+1",
logo: "fa fa-google",
shareUrl: "https://plus.google.com/share?url={url}",
countUrl: function() {
return "https://cors-anywhere.herokuapp.com/https://plusone.google.com/_/+1/fastbutton?url="+ window.encodeURIComponent(this.url);
},
countUrl: "https://cors-anywhere.herokuapp.com/https://plusone.google.com/_/+1/fastbutton?url={url}",
getCount: function(data) {
return parseFloat((data.match(/\{c: ([.0-9E]+)/) || [])[1]);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/jssocials.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jssocials",
"version": "1.3.0",
"version": "1.3.1",
"main": "dist/jssocials.js",
"description": "jsSocials - jQuery Social Network Sharing Plugin",
"homepage": "http://js-socials.com",
Expand Down

0 comments on commit dd5d3a3

Please sign in to comment.