aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-18 19:56:43 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-18 19:56:43 +0200
commit9e391937824df979077f09d873fb83a73a7e73c8 (patch)
tree93b78d8b044dd2fea30edc123ee598aa24820f13 /lib/main.js
parente7447b209031e5e81aa10eba4cd2e8711dece43e (diff)
downloadbugzilla-triage-9e391937824df979077f09d873fb83a73a7e73c8.tar.gz
Add a tool to analyze Xorg.0.log files
Fixes #1
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/main.js b/lib/main.js
index 66f90f9..c5df73d 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -86,14 +86,17 @@ function initialize(callback) {
// Get additional tables
if ("downloadJSON" in config.gJSONData.configData) {
var URLsList = config.gJSONData.configData.downloadJSON;
- for (var dwnldObj in URLsList) {
+ var dwnldObj = "";
+ URLsList.forEach(function (arr) {
+ var title = arr[0];
+ var url = arr[1];
Request({
- url: URLsList[dwnldObj],
+ url: url,
onComplete: function() {
- config[dwnldObj] = this.response.json;
+ config[title] = this.response.json;
}
}).get();
- }
+ }, this);
}
if (!myStorage.logs) {