aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/js/shaarli.js
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-09-02 13:54:38 +0200
committerGitHub <noreply@github.com>2017-09-02 13:54:38 +0200
commit96a1c79456b27892b9221707803f29585565b9dc (patch)
tree8e8203592cb66fe83b6885b07d817ea1a0dc7a5e /tpl/default/js/shaarli.js
parentea71536ed76a439ace794a1db3685827ab323c2a (diff)
parent206c45bd05a79b5e6d0c51452a6ac69e85cca0b2 (diff)
downloadShaarli-96a1c79456b27892b9221707803f29585565b9dc.tar.gz
Shaarli-96a1c79456b27892b9221707803f29585565b9dc.tar.zst
Shaarli-96a1c79456b27892b9221707803f29585565b9dc.zip
Merge pull request #939 from ArthurHoaro/hotfix/firefox-social-title
Firefox Social title: Use document.title instead of RainTPL variable
Diffstat (limited to 'tpl/default/js/shaarli.js')
-rw-r--r--tpl/default/js/shaarli.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js
index f38ba62f..1c66ebbd 100644
--- a/tpl/default/js/shaarli.js
+++ b/tpl/default/js/shaarli.js
@@ -607,10 +607,11 @@ function htmlEntities(str)
607function activateFirefoxSocial(node) { 607function activateFirefoxSocial(node) {
608 var loc = location.href; 608 var loc = location.href;
609 var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1); 609 var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1);
610 var title = document.title;
610 611
611 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. 612 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
612 var data = { 613 var data = {
613 name: "{$shaarlititle}", 614 name: title,
614 description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.", 615 description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.",
615 author: "Shaarli", 616 author: "Shaarli",
616 version: "1.0.0", 617 version: "1.0.0",