diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js index 43fa87d..a8bae4c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -24,11 +24,6 @@ var JSONURLDefault = "https://fedorahosted.org/released"+ "/bugzilla-triage-scripts/Config_data.json"; var config = {}; -(function (){ - var matchesAll = JSON.parse(selfMod.data.load("matches.json")); - config.matches = matchesAll.matches; - config.skipMatches = matchesAll.skipMatches; -})(); function isOurPage(window, matchingURLs) { var url = window.location.href; @@ -105,6 +100,11 @@ function initialize(callback) { config.logger = new logConstructor(myStorage.logs, JSON.parse(selfMod.data.load("bugzillalabelAbbreviations.json"))); + config.matches = config.gJSONData.configData.matches; + config.skipMatches = config.matches.map(function(x) { + return x.replace("show_bug.cgi.*","(process|post)_bug.cgi"); + }); + callback(config); } } |