mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
further optimized caching, and minor bugfix
This commit is contained in:
parent
bfea4dbf5f
commit
b94e7cd0c2
@ -319,7 +319,6 @@ function unpairClicked(host) {
|
||||
$('#continueUnpairHost').on('click', function () {
|
||||
host.unpair().then(function (onSuccess) {
|
||||
var unpairHostDialog = document.querySelector('#unpairHostDialog');
|
||||
unpairHostDialog.close();
|
||||
$('#host-container-' + host.serverUid).remove();
|
||||
snackbarLog('Successfully unpaired from host');
|
||||
delete hosts[host.serverUid]; // remove the host from the array;
|
||||
|
@ -294,7 +294,13 @@ NvHTTP.prototype = {
|
||||
return this.getAppListWithCacheFlush();
|
||||
},
|
||||
|
||||
// warms `this` _memCachedBoxArtArray with ALL box art from ALL servers
|
||||
// this is inefficient, but works well.
|
||||
warmBoxArtCache: function () {
|
||||
if (!this.paired) {
|
||||
console.log('not warming box art cache from unpaired host.');
|
||||
return;
|
||||
}
|
||||
if (Object.keys(this._memCachedBoxArtArray).length != 0) {
|
||||
console.log('box art cache already warmed.');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user