Permalink
Browse files

Whatsapp url fix thanks to @alejandroiglesias #210

  • Loading branch information...
45kb committed Jun 23, 2017
1 parent eb03f92 commit 1bdd03a2ac96727427e243228c53f4a2778df35f
Showing with 9 additions and 9 deletions.
  1. +1 −1 bower.json
  2. +3 −3 dist/angular-socialshare.js
  3. +1 −1 dist/angular-socialshare.js.map
  4. +3 −3 dist/angular-socialshare.min.js
  5. +1 −1 package.json
View
@@ -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 <filippo.oretti@gmail.com",
@@ -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*/
@@ -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');
Oops, something went wrong.

0 comments on commit 1bdd03a

Please sign in to comment.