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

Commit

Permalink
Whatsapp url fix thanks to @alejandroiglesias #210
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Jun 23, 2017
1 parent eb03f92 commit 1bdd03a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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.10",
"version": "2.3.11",
"description": "A social media url and content share module for angularjs.",
"authors": [
"Filippo Oretti <[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-socialshare.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* angular-socialshare
* 2.3.10
* 2.3.11
*
* A social media url and content share module for angularjs.
* http://720kb.github.io/angular-socialshare
*
* MIT license
* Fri Jun 16 2017
* Fri Jun 23 2017
*/
/*global angular*/
/*eslint no-loop-func:0, func-names:0*/
Expand Down Expand Up @@ -798,7 +798,7 @@
}
, manageWhatsappShare = function manageWhatsappShare($window, attrs, element) {

var href = 'whatsapp://send?text=' + encodeURIComponent(attrs.socialshareText) + encodeURIComponent(attrs.socialshareUrl || $window.location.href);
var href = 'whatsapp://send?text=' + encodeURIComponent(attrs.socialshareText) + '%0A' + encodeURIComponent(attrs.socialshareUrl || $window.location.href);

element.attr('href', href);
element.attr('target', '_top');
Expand Down
Loading

0 comments on commit 1bdd03a

Please sign in to comment.