diff --git a/content/liberator.js b/content/liberator.js index 46a95e87..0da3b943 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -127,8 +127,9 @@ const liberator = (function () //{{{ function () { liberator.open("chrome://mozapps/content/extensions/extensions.xul", - (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1) ? - liberator.NEW_TAB: liberator.CURRENT_TAB); + (liberator.options.newtab && + (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1)) ? + liberator.NEW_TAB: liberator.CURRENT_TAB); }); liberator.commands.add(["beep"], @@ -192,8 +193,9 @@ const liberator = (function () //{{{ if (special) // open javascript console { liberator.open("chrome://global/content/console.xul", - (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("javascript") != -1) ? - liberator.NEW_TAB : liberator.CURRENT_TAB); + (liberator.options.newtab && + (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("javascript") != -1)) ? + liberator.NEW_TAB : liberator.CURRENT_TAB); } else { @@ -605,7 +607,7 @@ const liberator = (function () //{{{ help: function(topic) { - var where = (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("help") != -1) ? + var where = (liberator.options.newtab && (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("help") != -1)) ? liberator.NEW_TAB : liberator.CURRENT_TAB; function jumpToTag(file, tag) diff --git a/content/muttator.js b/content/muttator.js index 80e796c8..ccd23235 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -45,10 +45,10 @@ liberator.config = { isComposeWindow: false, dialogs: [ - /*["about", "About Firefox", - function() { openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }], + ["about", "About Thunderbird", //XXX: Shredder ? + function() { openAboutDialog(); }], ["addons", "Manage Add-ons", - function() { BrowserOpenAddonsMgr(); }],*/ + function() { openAddonsMgr(); }], ["checkupdates", "Check for updates", function() { checkForUpdates(); }], /*["cleardata", "Clear private data", diff --git a/content/options.js b/content/options.js index 27699c4a..b96622fc 100644 --- a/content/options.js +++ b/content/options.js @@ -299,8 +299,9 @@ liberator.Options = function () //{{{ if (special) // open firefox settings gui dialog { liberator.open("about:config", - (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1) ? - liberator.NEW_TAB : liberator.CURRENT_TAB); + (liberator.options.newtab && + (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1)) ? + liberator.NEW_TAB : liberator.CURRENT_TAB); } else {