mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-17 05:43:31 +01:00
Fix styling of help pages on first run.
This commit is contained in:
@@ -81,7 +81,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
|||||||
// page is loaded in a background tab
|
// page is loaded in a background tab
|
||||||
load: function onLoad(event) {
|
load: function onLoad(event) {
|
||||||
let doc = event.originalTarget;
|
let doc = event.originalTarget;
|
||||||
if (doc instanceof Document)
|
if (doc instanceof Ci.nsIDOMDocument)
|
||||||
dactyl.initDocument(doc);
|
dactyl.initDocument(doc);
|
||||||
|
|
||||||
if (doc instanceof Ci.nsIDOMHTMLDocument) {
|
if (doc instanceof Ci.nsIDOMHTMLDocument) {
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
if (this.helpStyles.test(k))
|
if (this.helpStyles.test(k))
|
||||||
highlight.loaded[k] = true;
|
highlight.loaded[k] = true;
|
||||||
}
|
}
|
||||||
this.helpCSS = true;
|
this.helpStyled = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
Local: function Local(dactyl, modules, { document, window }) ({
|
Local: function Local(dactyl, modules, { document, window }) ({
|
||||||
|
|||||||
Reference in New Issue
Block a user