diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-18 19:56:43 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-18 19:56:43 +0200 |
commit | 9e391937824df979077f09d873fb83a73a7e73c8 (patch) | |
tree | 93b78d8b044dd2fea30edc123ee598aa24820f13 /lib/main.js | |
parent | e7447b209031e5e81aa10eba4cd2e8711dece43e (diff) | |
download | bugzilla-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.js | 11 |
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) { |