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

Fix unnecessary loading of highlight.jsm whenever a help page is loaded.

This commit is contained in:
Kris Maglione
2011-02-02 18:11:14 -05:00
parent 311a07fbd0
commit a2ea607fcd

View File

@@ -169,11 +169,12 @@ var ConfigBase = Class("ConfigBase", {
],
styleHelp: function styleHelp() {
const { highlight } = require("highlight");
if (!this.helpStyled)
if (!this.helpStyled) {
const { highlight } = require("highlight");
for (let k in keys(highlight.loaded))
if (/^(Help|StatusLine)|^(Boolean|Indicator|MoreMsg|Number|Logo|Key(word)?|String)$/.test(k))
highlight.loaded[k] = true;
}
this.helpCSS = true;
},