// given in the LICENSE.txt file included with this file.
"use strict";
-const Config = Module("config", ConfigBase, {
+var Config = Module("config", ConfigBase, {
name: "teledactyl",
appName: "Teledactyl",
idName: "TELEDACTYL",
init: function init() {
init.superapply(this, arguments);
- modules.__defineGetter__("content", function () window.content);
+ if (!("content" in modules))
+ modules.__defineGetter__("content", function () window.content);
util.overlayWindow(window, { append: <><hbox id="statusTextBox" flex=""/></> });
},
- get browser() window.getBrowser(),
+ get browser()
+ let (tabmail = document.getElementById('tabmail'))
+ tabmail && tabmail.tabInfo.length ? tabmail.getBrowserForSelectedTab()
+ : document.getElementById("messagepane"),
get commandContainer() document.documentElement.id,
get mStrip() this.tabStrip,
get browsers() [browser for (browser in Iterator(this.mTabs))],
+ removeTab: function removeTab(tab) this.closeTab(tab),
+
loadOneTab: function loadOneTab(uri) {
return this.openTab("contentTab", { contentPage: uri });
},
},
/*** optional options, there are checked for existence and a fallback provided ***/
- features: Class.memoize(function () set(
+ features: Class.memoize(function () Set(
this.isComposeWindow ? ["addressbook"]
: ["hints", "mail", "marks", "addressbook", "tabs"])),