mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 06:54:12 +01:00
Add config.browser, config.tabbrowser. Fix mailbird. &c.
This commit is contained in:
@@ -102,15 +102,14 @@ const Config = Module("config", ConfigBase, {
|
||||
}
|
||||
},
|
||||
|
||||
getBrowser: function () {
|
||||
var tabmail = { __proto__: document.getElementById("tabmail") };
|
||||
tabmail.__defineGetter__("mTabContainer", function () this.tabContainer);
|
||||
tabmail.__defineGetter__("mTabs", function () this.tabContainer.childNodes);
|
||||
tabmail.__defineGetter__("mCurrentTab", function () this.tabContainer.selectedItem);
|
||||
tabmail.__defineGetter__("mStrip", function () this.tabStrip);
|
||||
tabmail.__defineGetter__("browsers", function () [browser for (browser in Iterator(this.mTabs))]);
|
||||
config.getBrowser = function () tabmail;
|
||||
return tabmail;
|
||||
get browser() getBrowser(),
|
||||
tabbrowser: {
|
||||
__proto__: document.getElementById("tabmail"),
|
||||
get mTabContainer() this.tabContainer,
|
||||
get mTabs() this.tabContainer.childNodes,
|
||||
get mCurrentTab() this.tabContainer.selectedItem,
|
||||
get mStrip() this.tabStrip,
|
||||
get browsers() [browser for (browser in Iterator(this.mTabs))]
|
||||
},
|
||||
|
||||
// they are sorted by relevance, not alphabetically
|
||||
|
||||
Reference in New Issue
Block a user