Skip to content

Commit 4a8e1ed

Browse files
committed
Fixup gui options for all and none
1 parent 5e1f227 commit 4a8e1ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/content/liberator.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,8 @@ const Liberator = Module("liberator", {
13051305
},
13061306
validator: function (value) {
13071307
let toolbars = config.toolbars || {};
1308-
let opts = Object.keys(toolbars);
1308+
// "ne" is a simple hack, since val.replace(), below, makes "ne" out from "none"
1309+
let opts = ['all', 'ne'].concat(Object.keys(toolbars));
13091310
return value.every(function(val) {
13101311
return opts.indexOf(val.replace(/^(no|inv)/, "")) >= 0;
13111312
});

0 commit comments

Comments
 (0)