mirror of
https://github.com/appium/appium.git
synced 2026-02-09 11:18:51 -06:00
Merge pull request #2590 from paymand/contexts_fix
Don't send the JSON response as Error in getJSONFromUrl().
This commit is contained in:
@@ -98,7 +98,7 @@ WebKitRemoteDebugger.prototype.getJSONFromUrl = function (host, port, path, cb)
|
||||
jsonResponse += chunk;
|
||||
});
|
||||
response.on('end', function () {
|
||||
cb(JSON.parse(jsonResponse));
|
||||
cb(null, JSON.parse(jsonResponse));
|
||||
});
|
||||
}).on('error', cb);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user