From 921c51c04d1d590eac5f3165e0987984726c26bc Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 11 Feb 2011 14:01:41 -0500 Subject: [PATCH] Use browser.tabs.maxOpenBeforeWarn rather than a hard coded value to warn when opening large numbers of tabs. --- common/content/dactyl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index b89b4d9c..f720ec6f 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1146,7 +1146,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { if (typeof urls == "string") urls = dactyl.parseURLs(urls); - if (urls.length > 20 && !force) + if (urls.length > prefs.get("browser.tabs.maxOpenBeforeWarn", 20) && !force) return commandline.input("This will open " + urls.length + " new tabs. Would you like to continue? (yes/[no]) ", function (resp) { if (resp && resp.match(/^y(es)?$/i))