Firefox Social title: Use document.title instead of RainTPL variable
Fixes #929
This commit is contained in:
parent
a3130d2c2f
commit
206c45bd05
1 changed files with 2 additions and 1 deletions
|
@ -607,10 +607,11 @@ function htmlEntities(str)
|
||||||
function activateFirefoxSocial(node) {
|
function activateFirefoxSocial(node) {
|
||||||
var loc = location.href;
|
var loc = location.href;
|
||||||
var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1);
|
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.
|
// Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
|
||||||
var data = {
|
var data = {
|
||||||
name: "{$shaarlititle}",
|
name: title,
|
||||||
description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.",
|
description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.",
|
||||||
author: "Shaarli",
|
author: "Shaarli",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
|
|
Loading…
Reference in a new issue