aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js11
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);
}