mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 03:25:45 +01:00
Purge unnecessary uses of args.string.
This commit is contained in:
@@ -591,7 +591,7 @@ const Tabs = Module("tabs", {
|
||||
"Execute a command and tell it to output in a new tab",
|
||||
function (args) {
|
||||
dactyl.forceNewTab = true;
|
||||
dactyl.execute(args.string, null, true);
|
||||
dactyl.execute(args[0], null, true);
|
||||
dactyl.forceNewTab = false;
|
||||
}, {
|
||||
argCount: "+",
|
||||
@@ -605,7 +605,7 @@ const Tabs = Module("tabs", {
|
||||
function (args) {
|
||||
for (let i = 0; i < tabs.count; i++) {
|
||||
tabs.select(i);
|
||||
dactyl.execute(args.string, null, true);
|
||||
dactyl.execute(args[0], null, true);
|
||||
}
|
||||
}, {
|
||||
argCount: "1",
|
||||
@@ -756,7 +756,7 @@ const Tabs = Module("tabs", {
|
||||
commands.add(["tabopen", "t[open]", "tabnew"],
|
||||
"Open one or more URLs in a new tab",
|
||||
function (args) {
|
||||
dactyl.open(args.string || "about:blank", { from: "tabopen", where: dactyl.NEW_TAB, background: args.bang });
|
||||
dactyl.open(args[0] || "about:blank", { from: "tabopen", where: dactyl.NEW_TAB, background: args.bang });
|
||||
}, {
|
||||
bang: true,
|
||||
completer: function (context) completion.url(context),
|
||||
|
||||
Reference in New Issue
Block a user