From 2c1555b6515864574fafad1c58ab8e1c547168b3 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 2 Oct 2010 18:14:33 +1000 Subject: [PATCH] Add missing filename.xml help file tags to the tags list. These are the only tags guaranteed to be present for each file. --- common/content/dactyl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 35e40281..4c4765b1 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -481,12 +481,13 @@ const Dactyl = Module("dactyl", { // Scrape the list of help files from all.xml // Manually process main and overlay files, since XSLTProcessor and // XMLHttpRequest don't allow access to chrome documents. - tagMap.all = "all"; + tagMap["all"] = tagMap["all.xml"] = "all"; let files = findHelpFile("all").map(function (doc) [f.value for (f in util.evaluateXPath("//dactyl:include/@href", doc))]); // Scrape the tags from the rest of the help files. array.flatten(files).forEach(function (file) { + tagMap[file + ".xml"] = file; findHelpFile(file).forEach(function (doc) { addTags(file, doc); });