mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:57:59 +01:00
Assert mode.length == 1 in hints.addMode.
This commit is contained in:
@@ -787,6 +787,7 @@ var Hints = Module("hints", {
|
|||||||
* @optional
|
* @optional
|
||||||
*/
|
*/
|
||||||
addMode: function (mode, prompt, action, tags) {
|
addMode: function (mode, prompt, action, tags) {
|
||||||
|
dactyl.assert(mode.length == 1);
|
||||||
arguments[1] = UTF8(prompt);
|
arguments[1] = UTF8(prompt);
|
||||||
this.modes[mode] = Hints.Mode.apply(Hints.Mode, arguments);
|
this.modes[mode] = Hints.Mode.apply(Hints.Mode, arguments);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user