mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 11:45:45 +01:00
s/\bset\b/Set/g
This commit is contained in:
@@ -118,8 +118,8 @@ var actions = {
|
||||
});
|
||||
},
|
||||
get filter() {
|
||||
let ids = set(keys(JSON.parse(prefs.get("extensions.bootstrappedAddons", "{}"))));
|
||||
return function ({ item }) !item.userDisabled && set.has(ids, item.id);
|
||||
let ids = Set(keys(JSON.parse(prefs.get("extensions.bootstrappedAddons", "{}"))));
|
||||
return function ({ item }) !item.userDisabled && Set.has(ids, item.id);
|
||||
},
|
||||
perm: "disable"
|
||||
},
|
||||
@@ -166,7 +166,7 @@ var Addon = Class("Addon", {
|
||||
},
|
||||
|
||||
commandAllowed: function commandAllowed(cmd) {
|
||||
util.assert(set.has(actions, cmd), _("addon.unknownCommand"));
|
||||
util.assert(Set.has(actions, cmd), _("addon.unknownCommand"));
|
||||
|
||||
let action = actions[cmd];
|
||||
if ("perm" in action && !(this.permissions & AddonManager["PERM_CAN_" + action.perm.toUpperCase()]))
|
||||
|
||||
Reference in New Issue
Block a user