mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 05:33:31 +01:00
Merge testing.
--HG-- rename : common/content/base.js => common/modules/base.jsm rename : common/content/services.js => common/modules/services.jsm rename : common/content/style.js => common/modules/styles.jsm rename : common/content/template.js => common/modules/template.jsm rename : common/content/util.js => common/modules/util.jsm
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
// - finish 1.9.0 support if we're going to support sanitizing in Xulmus
|
||||
|
||||
const Sanitizer = Module("sanitizer", {
|
||||
requires: ["dactyl"],
|
||||
|
||||
init: function () {
|
||||
const self = this;
|
||||
dactyl.loadScript("chrome://browser/content/sanitize.js", Sanitizer);
|
||||
@@ -144,10 +142,13 @@ const Sanitizer = Module("sanitizer", {
|
||||
context.completions = options.get("sanitizeitems").completer();
|
||||
},
|
||||
options: [
|
||||
[["-timespan", "-t"],
|
||||
commands.OPTION_INT,
|
||||
function (arg) /^[0-4]$/.test(arg),
|
||||
function () options.get("sanitizetimespan").completer()]
|
||||
{
|
||||
names: ["-timespan", "-t"],
|
||||
description: "Timespan for which to sanitize items",
|
||||
completer: function () options.get("sanitizetimespan").completer(),
|
||||
type: CommandOption.INT,
|
||||
validator: function (arg) /^[0-4]$/.test(arg)
|
||||
}
|
||||
]
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user