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

Allowing custom text for google plus #220

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dist/angular-socialshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* http://720kb.github.io/angular-socialshare
*
* MIT license
* Fri Jun 23 2017
* Sun Nov 05 2017
*/
/*global angular*/
/*eslint no-loop-func:0, func-names:0*/
Expand Down Expand Up @@ -554,11 +554,12 @@
+ ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
}
, manageGooglePlusShare = function manageGooglePlusShare($window, attrs) {

$window.open(
'https://plus.google.com/share?url=' + encodeURIComponent(attrs.socialshareUrl || $window.location.href)
'https://plus.google.com/share?url=' + encodeURIComponent(attrs.socialshareUrl || $window.location.href)+'&prefilltext='+attrs.socialshareText
, 'Google+', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight
+ ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
return false;
}
, manageRedditShare = function manageRedditShare($window, attrs) {
var urlString = 'https://www.reddit.com/';
Expand Down
Loading