mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 19:12:26 +01:00
Default to opening multiple URLs in windows instead of tabs when !has("tabs")
This commit is contained in:
@@ -1099,6 +1099,7 @@ const liberator = (function () //{{{
|
|||||||
return open(urls, liberator.NEW_WINDOW);
|
return open(urls, liberator.NEW_WINDOW);
|
||||||
|
|
||||||
let tab = getBrowser().addTab(url, null, null, postdata);
|
let tab = getBrowser().addTab(url, null, null, postdata);
|
||||||
|
|
||||||
if (where == liberator.NEW_TAB)
|
if (where == liberator.NEW_TAB)
|
||||||
getBrowser().selectedTab = tab;
|
getBrowser().selectedTab = tab;
|
||||||
break;
|
break;
|
||||||
@@ -1124,8 +1125,6 @@ const liberator = (function () //{{{
|
|||||||
for (let [i, url] in Iterator(urls))
|
for (let [i, url] in Iterator(urls))
|
||||||
{
|
{
|
||||||
open(url, where);
|
open(url, where);
|
||||||
if (i == 0 && !liberator.has("tabs"))
|
|
||||||
break;
|
|
||||||
where = liberator.NEW_BACKGROUND_TAB;
|
where = liberator.NEW_BACKGROUND_TAB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user