mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 23:15:46 +01:00
Make Melodactyl minimally functional. Closes issue #340.
--HG-- rename : pentadactyl/chrome.manifest => common/chrome.manifest
This commit is contained in:
@@ -47,11 +47,13 @@ var Group = Class("Group", {
|
||||
get builtin() this.modules.contexts.builtinGroups.indexOf(this) >= 0,
|
||||
|
||||
}, {
|
||||
compileFilter: function (patterns) {
|
||||
compileFilter: function (patterns, default_) {
|
||||
if (arguments.length < 2)
|
||||
default_ = false;
|
||||
|
||||
function siteFilter(uri)
|
||||
let (match = array.nth(siteFilter.filters, function (f) f(uri), 0))
|
||||
match && match.result;
|
||||
match ? match.result : default_;
|
||||
|
||||
return update(siteFilter, {
|
||||
toString: function () this.filters.join(","),
|
||||
|
||||
Reference in New Issue
Block a user