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, 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) {