diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-21 01:21:23 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-21 01:21:23 +0200 |
commit | 9c78d98edef12613da157c8cfa366bf937edd422 (patch) | |
tree | 5a6e61a9bca39bcfa71ae48dbe08c8b5c756e81b /lib/main.js | |
parent | 47b6e6fb91372b54bb309e57c14e3f9f987e0322 (diff) | |
download | bugzilla-triage-9c78d98edef12613da157c8cfa366bf937edd422.tar.gz |
Logger works and some cleanup
Juhuuu, logger works (almost, I haven't tested generation of reports yet)
remove all trailing blank space
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js index 04d89aa..867c3d5 100644 --- a/lib/main.js +++ b/lib/main.js @@ -9,7 +9,7 @@ // http://hg.mozilla.org/users/avarma_mozilla.com/atul-packages/file/42ac1e99a107/packages\ // /facebook-acquaintances/lib/main.js#l11 // http://ehsanakhgari.org/blog/2010-05-31/my-experience-jetpack-sdk#comment-1253 -// +// "use strict"; var util = require("util"); var logger = require("logger"); @@ -63,10 +63,10 @@ function isOurPage(window, matchingURLs) { window = window.window; } var url = window.location.href; - + // like ["regexp-url1", "regexp-url2"] return matchingURLs.some(function (element,i,a) { - return new RegExp(element).test(url); + return new RegExp(element).test(url); }); } @@ -92,9 +92,10 @@ function initialize(callback) { myStorage.logs = {}; } - config.logger = new logger.Logger(myStorage.logs, + var logConstructor = logger.Logger; + config.logger = new logConstructor(myStorage.logs, config.gJSONData.constantData.bugzillalabelAbbreviations); - + callback(config); }, this); } |