Skip to content

Commit

Permalink
Merge pull request #39 from tomi85/patch-1
Browse files Browse the repository at this point in the history
Fix Firefox Social API integration
  • Loading branch information
kalvn committed Mar 23, 2016
2 parents e57afc1 + da1e62c commit f18d47d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions material/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@
var baseURL = loc.substring(0, loc.lastIndexOf("/"));
// Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
var data = {
name: "{$shaarlititle}",
name: document.title,
description: "The personal, minimalist, super-fast, no-database delicious clone.",
author: "Shaarli",
version: "1.0.0",
iconURL: baseURL + "/tpl/material/images/favicons/favicon-96x96.png",
icon32URL: baseURL + "/tpl/material/images/favicons/favicon-32x32.png",
icon64URL: baseURL + "/tpl/material/images/favicons/favicon-64x64.png",
shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{description}&source=firefoxsocialapi{/noparse}",
shareURL: baseURL + "?post=%{url}&title=%{title}&description=%{description}&source=firefoxsocialapi",
homepageURL: baseURL
};
node.setAttribute("data-service", JSON.stringify(data));
Expand Down Expand Up @@ -556,4 +556,4 @@
$(document).ready(function(){
init();
});
})();
})();

0 comments on commit f18d47d

Please sign in to comment.