mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 10:04:12 +01:00
Make teledactyl not explode yay.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
"use strict";
|
||||
|
||||
const Addressbook = Module("addressbook", {
|
||||
var Addressbook = Module("addressbook", {
|
||||
init: function () {
|
||||
},
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// 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",
|
||||
@@ -16,12 +16,16 @@ const Config = Module("config", ConfigBase, {
|
||||
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,
|
||||
|
||||
@@ -33,6 +37,8 @@ const Config = Module("config", ConfigBase, {
|
||||
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 });
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
"use strict";
|
||||
|
||||
const Mail = Module("mail", {
|
||||
var Mail = Module("mail", {
|
||||
init: function init() {
|
||||
// used for asynchronously selecting messages after wrapping folders
|
||||
this._selectMessageKeys = [];
|
||||
|
||||
Reference in New Issue
Block a user