1
0
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:
Kris Maglione
2009-10-31 17:28:35 -04:00
parent 83ef6a7a93
commit d880d4afcb
5 changed files with 26 additions and 22 deletions

View File

@@ -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,