1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:47:58 +01:00

Fix some functions that used to use args.string.

This commit is contained in:
Kris Maglione
2010-09-29 13:21:01 -04:00
parent 47f5b5e9d9
commit f7b99e9272
9 changed files with 25 additions and 25 deletions

View File

@@ -1562,7 +1562,7 @@ const CommandLine = Module("commandline", {
commands.add([command.name],
command.description,
function (args) {
let str = CommandLine.echoArgumentToString(args[0], true);
let str = CommandLine.echoArgumentToString(args[0] || "", true);
if (str != null)
command.action(str);
}, {
@@ -1597,7 +1597,7 @@ const CommandLine = Module("commandline", {
commands.add(["sil[ent]"],
"Run a command silently",
function (args) {
commandline.runSilently(function () dactyl.execute(args[0], null, true));
commandline.runSilently(function () dactyl.execute(args[0] || "", null, true));
}, {
completer: function (context) completion.ex(context),
literal: 0,