From: ArthurHoaro Date: Sat, 2 Sep 2017 11:50:03 +0000 (+0200) Subject: Firefox Social title: Use document.title instead of RainTPL variable X-Git-Tag: v0.9.4~7^2~6^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=206c45bd05a79b5e6d0c51452a6ac69e85cca0b2 Firefox Social title: Use document.title instead of RainTPL variable Fixes #929 --- diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 4f49affa..e0b4c752 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -607,10 +607,11 @@ function htmlEntities(str) function activateFirefoxSocial(node) { var loc = location.href; var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1); + var title = document.title; // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. var data = { - name: "{$shaarlititle}", + name: title, description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.", author: "Shaarli", version: "1.0.0",