1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:27:58 +01:00

Respect 'pageinfo' in <C-g>

This commit is contained in:
Kris Maglione
2011-06-03 11:13:10 -04:00
parent 8522cf1851
commit cd0fba415e

View File

@@ -152,6 +152,9 @@ var Buffer = Module("buffer", {
});
this.addPageInfoSection("m", "Meta Tags", function (verbose) {
if (!verbose)
return [];
// get meta tag data, sort and put into pageMeta[]
let metaNodes = buffer.focusedFrame.document.getElementsByTagName("meta");
@@ -863,7 +866,7 @@ var Buffer = Module("buffer", {
let file = content.location.pathname.split("/").pop() || _("buffer.noName");
let title = content.document.title || _("buffer.noTitle");
let info = template.map("gf",
let info = template.map(sections || options["pageinfo"],
function (opt) template.map(buffer.pageInfo[opt].action(), util.identity, ", "),
", ");