diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/main.js b/lib/main.js index ea01925..8e8aeaa 100644 --- a/lib/main.js +++ b/lib/main.js @@ -65,9 +65,9 @@ function initialize(callback) { Request({ url: urlStr, - onComplete: function () { - if (this.response.status == 200) { - config.gJSONData = this.response.json; + onComplete: function (response) { + if (response.status == 200) { + config.gJSONData = response.json; // Get additional tables if ("downloadJSON" in config.gJSONData.configData) { @@ -78,9 +78,9 @@ function initialize(callback) { var url = arr[1]; Request({ url: url, - onComplete: function() { - if (this.response.status == 200) { - config.gJSONData.constantData[title] = this.response.json; + onComplete: function(response) { + if (response.status == 200) { + config.gJSONData.constantData[title] = response.json; } } }).get(); |