mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 04:55:52 +01:00
Don't use the word eval for fear that it may break "use strict" mode later.
This commit is contained in:
@@ -174,7 +174,7 @@ const AutoCommands = Module("autocommands", {
|
||||
if (args.bang)
|
||||
autocommands.remove(event, regex);
|
||||
if (args["-javascript"])
|
||||
cmd = eval("(function (args) { with(args) {" + cmd + "} })");
|
||||
cmd = dactyl.userfunc("args", "with(args) {" + cmd + "}");
|
||||
autocommands.add(events, regex, cmd);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user