add missing var declaration

This commit is contained in:
Jeremy Kauffman 2017-02-27 12:09:30 -05:00 committed by Alex Liebowitz
parent 7eb15a9ac6
commit 049e007747

View file

@ -255,7 +255,7 @@ lbry.getFeaturedDiscoverNames = function(callback) {
xhr.open('GET', 'https://api.lbry.io/discover/list', true);
xhr.onload = () => {
if (xhr.status === 200) {
responseData = JSON.parse(xhr.responseText);
var responseData = JSON.parse(xhr.responseText);
if (responseData.data) //new signature, once api.lbry.io is updated
{
resolve(responseData.data);