diff --git a/static/js/index.js b/static/js/index.js index c5a7b7a..a6c0c99 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -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; diff --git a/static/js/utils.js b/static/js/utils.js index 8edac61..1005dad 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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;