We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd16b6a commit bf925e3Copy full SHA for bf925e3
src/chrome/content/code/ApplicableList.js
@@ -212,6 +212,10 @@ ApplicableList.prototype = {
212
213
add_command: function(rule) {
214
var command = this.document.createElement("command");
215
+ if (typeof rule.id !== 'number') {
216
+ this.log(WARN, "Rule has invalid id " + rule.id);
217
+ return;
218
+ }
219
command.setAttribute('id', rule.id+'-command');
220
command.setAttribute('label', rule.name);
221
command.setAttribute('oncommand', 'toggle_rule("'+rule.id+'")');
0 commit comments