Fix Firefox Social button in the default theme
is no longer required since the JS function is now in . Also, include the trailing slash in the post URL. Fixes #895
This commit is contained in:
parent
88535f20a9
commit
8eb6bac137
1 changed files with 2 additions and 2 deletions
|
@ -606,7 +606,7 @@ function htmlEntities(str)
|
||||||
|
|
||||||
function activateFirefoxSocial(node) {
|
function activateFirefoxSocial(node) {
|
||||||
var loc = location.href;
|
var loc = location.href;
|
||||||
var baseURL = loc.substring(0, loc.lastIndexOf("/"));
|
var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1);
|
||||||
|
|
||||||
// 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 = {
|
||||||
|
@ -619,7 +619,7 @@ function activateFirefoxSocial(node) {
|
||||||
icon32URL: baseURL + "/images/favicon.ico",
|
icon32URL: baseURL + "/images/favicon.ico",
|
||||||
icon64URL: baseURL + "/images/favicon.ico",
|
icon64URL: baseURL + "/images/favicon.ico",
|
||||||
|
|
||||||
shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
|
shareURL: baseURL + "?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi",
|
||||||
homepageURL: baseURL
|
homepageURL: baseURL
|
||||||
};
|
};
|
||||||
node.setAttribute("data-service", JSON.stringify(data));
|
node.setAttribute("data-service", JSON.stringify(data));
|
||||||
|
|
Loading…
Reference in a new issue