]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Firefox Social title: Use document.title instead of RainTPL variable 939/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 2 Sep 2017 11:50:03 +0000 (13:50 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 2 Sep 2017 11:50:52 +0000 (13:50 +0200)
Fixes #929

tpl/default/js/shaarli.js

index 4f49affa3321226024bae670117d7851ba385141..e0b4c752612883da086c86a3cdc936f23c3632c6 100644 (file)
@@ -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",