mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 21:15:47 +01:00
Fix a bug in replacing user commands. Closes issue #88.
--HG-- extra : rebase_source : 3d5045b548a81ec70e43ab1e3d006a975f95b974
This commit is contained in:
@@ -443,7 +443,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
||||
services.get("permissions").remove(uri, "cookie");
|
||||
services.get("permissions").add(uri, "cookie", Sanitizer.PERMS[perm]);
|
||||
}
|
||||
commands.addUserCommand(["cookies", "ck"],
|
||||
commands.add(["cookies", "ck"],
|
||||
"Change cookie permissions for sites.",
|
||||
function (args) {
|
||||
let host = args.shift();
|
||||
@@ -497,7 +497,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
||||
break;
|
||||
}
|
||||
},
|
||||
}, true);
|
||||
});
|
||||
},
|
||||
completion: function (dactyl, modules, window) {
|
||||
modules.completion.visibleHosts = function completeHosts(context) {
|
||||
|
||||
Reference in New Issue
Block a user