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

Commit 1bdd03a

Browse files
committed
Whatsapp url fix thanks to @alejandroiglesias #210
1 parent eb03f92 commit 1bdd03a

5 files changed

+9
-9
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-socialshare",
3-
"version": "2.3.10",
3+
"version": "2.3.11",
44
"description": "A social media url and content share module for angularjs.",
55
"authors": [
66
"Filippo Oretti <[email protected]",

dist/angular-socialshare.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* angular-socialshare
3-
* 2.3.10
3+
* 2.3.11
44
*
55
* A social media url and content share module for angularjs.
66
* http://720kb.github.io/angular-socialshare
77
*
88
* MIT license
9-
* Fri Jun 16 2017
9+
* Fri Jun 23 2017
1010
*/
1111
/*global angular*/
1212
/*eslint no-loop-func:0, func-names:0*/
@@ -798,7 +798,7 @@
798798
}
799799
, manageWhatsappShare = function manageWhatsappShare($window, attrs, element) {
800800

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

803803
element.attr('href', href);
804804
element.attr('target', '_top');

0 commit comments

Comments
 (0)