Permalink
Browse files

Merge branch 'release/v1.1.3'

  • Loading branch information...
VincentLoy committed Feb 7, 2018
2 parents 0dcf130 + e5d0b3a commit 84c30d6a78c54252bb37f0e699900d4bfabb84b7
Showing with 3 additions and 3 deletions.
  1. +1 −1 dev/shareSelectedText.js
  2. +1 −1 dist/shareSelectedText.js
  3. +1 −1 dist/shareSelectedText.min.js
@@ -128,7 +128,7 @@
twitterUrl += `&via=${parameters.twitterUsername}`;
}

let facebookUrl = `https://facebook.com/dialog/share?display=${parameters.facebookDisplayMode}&href=${PAGE_URL}`;
let facebookUrl = `https://facebook.com/dialog/share?display=${parameters.facebookDisplayMode}&href=${PAGE_URL}&quote=${text}`;

if (document.querySelector('meta[property="fb:app_id"]') &&
document.querySelector('meta[property="fb:app_id"]').getAttribute('content')) {
@@ -130,7 +130,7 @@
twitterUrl += '&via=' + parameters.twitterUsername;
}

var facebookUrl = 'https://facebook.com/dialog/share?display=' + parameters.facebookDisplayMode + '&href=' + PAGE_URL;
var facebookUrl = 'https://facebook.com/dialog/share?display=' + parameters.facebookDisplayMode + '&href=' + PAGE_URL + '&quote=' + text;

if (document.querySelector('meta[property="fb:app_id"]') && document.querySelector('meta[property="fb:app_id"]').getAttribute('content')) {
var content = document.querySelector('meta[property="fb:app_id"]');

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 84c30d6

Please sign in to comment.