1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 10:35:45 +01:00

Produce a tag map in dactyl.exportHelp.

This commit is contained in:
Kris Maglione
2010-12-20 04:42:35 -05:00
parent a0adb276d0
commit 8f7de7cc12
2 changed files with 4 additions and 2 deletions

View File

@@ -682,6 +682,8 @@ const Dactyl = Module("dactyl", {
.join("\n");
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));
addDataEntry("tag-map.json", JSON.stringify(services["dactyl:"].HELP_TAGS));
let m, re = /(chrome:[^ ");]+\/)([^ ");]+)/g;
while ((m = re.exec(data)))
chrome[m[0]] = m[2];