Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Commit

Permalink
new version , removed deprecated Facebook parameters see #207
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Jun 16, 2017
1 parent 7661cac commit 1538d22
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 32 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-socialshare",
"version": "2.3.8",
"version": "2.3.9",
"description": "A social media url and content share module for angularjs.",
"authors": [
"Filippo Oretti <[email protected]",
Expand Down
28 changes: 2 additions & 26 deletions dist/angular-socialshare.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* angular-socialshare
* 2.3.8
* 2.3.9
*
* A social media url and content share module for angularjs.
* http://720kb.github.io/angular-socialshare
*
* MIT license
* Tue May 02 2017
* Fri Jun 16 2017
*/
/*global angular*/
/*eslint no-loop-func:0, func-names:0*/
Expand Down Expand Up @@ -390,14 +390,6 @@
urlString += '&to=' + encodeURIComponent(attrs.socialshareTo);
}

if (attrs.socialshareQuote) {
urlString += '&quote=' + encodeURIComponent(attrs.socialshareQuote);
}

if (attrs.socialshareHashtags) {
urlString += '&hashtag=' + encodeURIComponent(attrs.socialshareHashtags);
}

if (attrs.socialshareDisplay) {
urlString += '&display=' + encodeURIComponent(attrs.socialshareDisplay);
}
Expand All @@ -410,22 +402,6 @@
urlString += '&from=' + encodeURIComponent(attrs.socialshareFrom);
}

if (attrs.socialshareDescription) {
urlString += '&description=' + encodeURIComponent(attrs.socialshareDescription);
}

if (attrs.socialshareText) {
urlString += '&name=' + encodeURIComponent(attrs.socialshareText);
}

if (attrs.socialshareCaption) {
urlString += '&caption=' + encodeURIComponent(attrs.socialshareCaption);
}

if (attrs.socialshareMedia) {
urlString += '&picture=' + encodeURIComponent(attrs.socialshareMedia);
}

if (attrs.socialshareSource) {
urlString += '&source=' + encodeURIComponent(attrs.socialshareSource);
}
Expand Down
Loading

0 comments on commit 1538d22

Please sign in to comment.