1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:17:59 +01:00

made :help and :prefs work for muttator again, thanks temerako

This commit is contained in:
Martin Stubenschrott
2008-05-16 15:37:27 +00:00
parent de50bb4397
commit c9cbedf439
3 changed files with 13 additions and 10 deletions

View File

@@ -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)