mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 10:55:46 +01:00
Cleanup liberator.open a bit; could probably use a bit more.
This commit is contained in:
@@ -551,13 +551,10 @@ function Tabs() //{{{
|
||||
args = args.string;
|
||||
|
||||
let where = special ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB;
|
||||
if (/\btabopen\b/.test(options["activate"]))
|
||||
where = special ? liberator.NEW_BACKGROUND_TAB : liberator.NEW_TAB;
|
||||
|
||||
if (args)
|
||||
liberator.open(args, where);
|
||||
liberator.open(args, { from: "tabopen", where: where });
|
||||
else
|
||||
liberator.open("about:blank", where);
|
||||
liberator.open("about:blank", { from: "tabopen", where: where });
|
||||
},
|
||||
{
|
||||
bang: true,
|
||||
|
||||
Reference in New Issue
Block a user