mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-20 23:20:21 +00:00
Fix some app list refreshing bugs
This commit is contained in:
@@ -40,7 +40,6 @@ function NvHTTP(address, clientUid) {
|
||||
this.clientUid = clientUid;
|
||||
this._baseUrlHttps = 'https://' + address + ':47984';
|
||||
this._baseUrlHttp = 'http://' + address + ':47989';
|
||||
this._appListCache = null;
|
||||
this._memCachedBoxArtArray = {};
|
||||
_self = this;
|
||||
};
|
||||
@@ -133,13 +132,6 @@ NvHTTP.prototype = {
|
||||
},
|
||||
|
||||
getAppList: function () {
|
||||
if (_self._appListCache) {
|
||||
console.log('Returning app list from cache');
|
||||
return new Promise(function (resolve, reject) {
|
||||
resolve(_self._appListCache);
|
||||
});
|
||||
}
|
||||
|
||||
return sendMessage('openUrl', [_self._baseUrlHttps + '/applist?' + _self._buildUidStr(), false]).then(function (ret) {
|
||||
$xml = _self._parseXML(ret);
|
||||
|
||||
@@ -155,9 +147,6 @@ NvHTTP.prototype = {
|
||||
});
|
||||
}
|
||||
|
||||
if (appList)
|
||||
_self._appListCache = appList;
|
||||
|
||||
return appList;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user