Skip to content

Commit

Permalink
Changed index.js to not require the parameter "type" when calling thi…
Browse files Browse the repository at this point in the history
…s.getLocations.

This allows compatibility with older DirecTV STBs.  Please see
cmrust#2
and
ToddGreenfield/homebridge-directv#17
  • Loading branch information
Numbski committed Oct 19, 2020
1 parent f3564cf commit 2520315
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ module.exports.Remote = function(ipAddr) {
if (typeof type !== 'undefined') {
options.path = buildQueryString(options.path, { type: type });
}
else
options.path = buildQueryString(options.path);
}

makeRequest(options, callbackHandler(callback));
};
Expand Down Expand Up @@ -317,4 +320,4 @@ module.exports.Remote = function(ipAddr) {
return callback(new Error('HTTP request failed: ' + err));
});
};
};
};

0 comments on commit 2520315

Please sign in to comment.