mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 09:35:47 +01:00
Accept more plausible URLs rather than falling back to horrid defsearch. Closes issue #338.
This commit is contained in:
@@ -384,7 +384,7 @@ var Addons = Module("addons", {
|
||||
}, {
|
||||
argCount: "1",
|
||||
completer: function (context) {
|
||||
context.filters.push(function ({ item }) item.isDirectory() || /\.xpi$/.test(item.leafName));
|
||||
context.filters.push(function ({ isdir, text }) isdir || /\.xpi$/.test(text));
|
||||
completion.file(context);
|
||||
},
|
||||
literal: 0
|
||||
|
||||
Reference in New Issue
Block a user