1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:27:59 +01:00

Tend towards proportional fonts in :help.

This commit is contained in:
Kris Maglione
2010-12-29 18:36:22 -05:00
parent 13e22f7458
commit 353cad261d
4 changed files with 49 additions and 32 deletions

View File

@@ -150,6 +150,11 @@ var Buffer = Module("buffer", {
this.cleanupProgressListener = util.overlayObject(window.XULBrowserWindow,
this.progressListener);
if (dactyl.has("tabs"))
for (let tab in values(tabs.allTabs))
if (tab.linkedBrowser.contentDocument.readyState === "complete")
dactyl.initDocument(tab.linkedBrowser.contentDocument);
},
cleanup: function () {
@@ -205,12 +210,8 @@ var Buffer = Module("buffer", {
// page is loaded in a background tab
onPageLoad: function onPageLoad(event) {
let doc = event.originalTarget;
if (doc instanceof Document) {
if (doc.location.protocol === "dactyl:") {
dactyl.initHelp();
config.styleHelp();
}
}
if (doc instanceof Document)
dactyl.initDocument(doc);
if (doc instanceof HTMLDocument) {
if (doc.defaultView.frameElement) {