mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 03:02:26 +01:00
Add :command -javascript and CommandOption#default.
This commit is contained in:
@@ -307,9 +307,8 @@ const Dactyl = Module("dactyl", {
|
||||
*/
|
||||
userFunc: function () {
|
||||
return this.userEval(
|
||||
"(function userFunction(" +
|
||||
Array.slice(arguments, 0, -1).join(", ") +
|
||||
") { " + arguments[arguments.length - 1] + " })");
|
||||
"(function userFunction(" + Array.slice(arguments, 0, -1).join(", ") + ")" +
|
||||
" { " + arguments[arguments.length - 1] + " })");
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user