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

access 'newtab' with the square bracket notation rather than dot notation

This commit is contained in:
Doug Kearns
2008-07-20 15:27:52 +00:00
parent 706f2d0c93
commit c47b50df11
3 changed files with 5 additions and 5 deletions

View File

@@ -138,8 +138,8 @@ const liberator = (function () //{{{
function () function ()
{ {
liberator.open("chrome://mozapps/content/extensions/extensions.xul", liberator.open("chrome://mozapps/content/extensions/extensions.xul",
(liberator.options.newtab && (liberator.options["newtab"] &&
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1)) ? (liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("addons") != -1)) ?
liberator.NEW_TAB: liberator.CURRENT_TAB); liberator.NEW_TAB: liberator.CURRENT_TAB);
}); });

View File

@@ -298,8 +298,8 @@ liberator.Options = function () //{{{
if (special) // open firefox settings gui dialog if (special) // open firefox settings gui dialog
{ {
liberator.open("about:config", liberator.open("about:config",
(liberator.options.newtab && (liberator.options["newtab"] &&
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1)) ? (liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("prefs") != -1)) ?
liberator.NEW_TAB : liberator.CURRENT_TAB); liberator.NEW_TAB : liberator.CURRENT_TAB);
} }
else else

View File

@@ -246,7 +246,7 @@ liberator.config = { //{{{
function () function ()
{ {
liberator.open("chrome://mozapps/content/downloads/downloads.xul", liberator.open("chrome://mozapps/content/downloads/downloads.xul",
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("downloads") != -1) ? (liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("downloads") != -1) ?
liberator.NEW_TAB : liberator.CURRENT_TAB); liberator.NEW_TAB : liberator.CURRENT_TAB);
}); });