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

Commit

Permalink
Telegram new provider thanks to @EdenCore
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed May 24, 2016
1 parent fd6d12e commit 4f3e4ef
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"outside"
],
"strict": [2, "never"],
"strict": 2,
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-socialshare",
"version": "2.1.5",
"description": "A social url and content sharing directive for angularjs.",
"version": "2.1.6",
"description": "A social media url and content share directive for angularjs.",
"authors": [
"Filippo Oretti <filippo.oretti@gmail.com",
"Dario Andrei <wouldgo84@gmail.com>"
Expand Down
9 changes: 5 additions & 4 deletions dist/angular-socialshare.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* angular-socialshare
* 2.1.5
* 2.1.6
*
* A social urls and content sharing directive for angularjs.
* A social media url and content share directive for angularjs.
* http://720kb.githb.io/angular-socialshare
*
* MIT license
Expand Down Expand Up @@ -818,9 +818,10 @@
element.attr('href', href);
}
, manageTelegramShare = function manageTelegramShare($window, $location, attrs, element) {
var href = 'https://telegram.me/share/url?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl())
var href = 'https://telegram.me/share/url?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl());

if (attrs.socialshareText) {
href += '&text=' + encodeURIComponent(attrs.socialshareText)
href += '&text=' + encodeURIComponent(attrs.socialshareText);
}

element.attr('href', href);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-socialshare.js.min.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/angular-socialshare.min.js

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

5 changes: 3 additions & 2 deletions lib/angular-socialshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,10 @@
element.attr('href', href);
}
, manageTelegramShare = function manageTelegramShare($window, $location, attrs, element) {
var href = 'https://telegram.me/share/url?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl())
var href = 'https://telegram.me/share/url?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl());

if (attrs.socialshareText) {
href += '&text=' + encodeURIComponent(attrs.socialshareText)
href += '&text=' + encodeURIComponent(attrs.socialshareText);
}

element.attr('href', href);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-socialshare",
"version": "2.1.5",
"description": "A social urls and content sharing directive for angularjs.",
"version": "2.1.6",
"description": "A social media url and content share directive for angularjs.",
"homepage": "http://720kb.githb.io/angular-socialshare",
"keywords": [
"social",
Expand Down

0 comments on commit 4f3e4ef

Please sign in to comment.