refactored NvHTTP.init() to be less confusing. This closes #17

This commit is contained in:
R. Aidan Campbell
2016-03-11 13:38:00 -05:00
parent b2cbd36ec4
commit 028156609b
2 changed files with 78 additions and 90 deletions

View File

@@ -33,7 +33,7 @@ function NvHTTP(address, clientUid) {
};
NvHTTP.prototype = {
init: function () {
refreshServerInfo: function () {
return sendMessage('openUrl', [_self._baseUrlHttps+'/serverinfo?'+_self._buildUidStr()]).then(function(ret) {
$xml = _self._parseXML(ret);
$root = $xml.find('root')