1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 00:44:11 +01:00

Fix inherited CSS output in dactyl.exportHelp.

This commit is contained in:
Kris Maglione
2010-12-30 13:40:41 -05:00
parent cfcf852e4a
commit baf853cee9
2 changed files with 15 additions and 14 deletions

View File

@@ -745,7 +745,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
let data = [h for (h in highlight) if (set.has(styles, h.class) || /^Help/.test(h.class))]
.map(function (h) h.selector
.replace(/^\[.*?=(.*?)\]/, ".hl-$1")
.replace(/html\|/, "") + "\t" + "{" + h.value + "}")
.replace(/html\|/g, "") + "\t" + "{" + h.cssText + "}")
.join("\n");
addDataEntry("help.css", data.replace(/chrome:[^ ")]+\//g, ""));