diff --git a/content/liberator.js b/content/liberator.js index d127add6..ece55ec4 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -138,8 +138,8 @@ const liberator = (function () //{{{ function () { liberator.open("chrome://mozapps/content/extensions/extensions.xul", - (liberator.options.newtab && - (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1)) ? + (liberator.options["newtab"] && + (liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("addons") != -1)) ? liberator.NEW_TAB: liberator.CURRENT_TAB); }); diff --git a/content/options.js b/content/options.js index 4da051a4..52f87862 100644 --- a/content/options.js +++ b/content/options.js @@ -298,8 +298,8 @@ liberator.Options = function () //{{{ if (special) // open firefox settings gui dialog { liberator.open("about:config", - (liberator.options.newtab && - (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1)) ? + (liberator.options["newtab"] && + (liberator.options["newtab"] == "all" || liberator.options["newtab"].split(",").indexOf("prefs") != -1)) ? liberator.NEW_TAB : liberator.CURRENT_TAB); } else diff --git a/content/vimperator.js b/content/vimperator.js index cfcb9457..6902aa3b 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -246,7 +246,7 @@ liberator.config = { //{{{ function () { 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); });