mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-10 11:15:49 +01:00
Use browser.tabs.maxOpenBeforeWarn rather than a hard coded value to warn when opening large numbers of tabs.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user