Merge pull request #939 from ArthurHoaro/hotfix/firefox-social-title
Firefox Social title: Use document.title instead of RainTPL variable
This commit is contained in:
commit
96a1c79456
4 changed files with 69 additions and 4 deletions
tpl/default/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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue