From 17785135445cec6194976fa4f61c77b01aa2b616 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Sun, 10 Jul 2016 18:16:34 -0400 Subject: [PATCH] fixed bug if new apps were added to GFE, they wouldn't appear in moonlight, and JS would get sad --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index eccb5b3..f480c14 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -183,7 +183,7 @@ NvHTTP.prototype = { chrome.storage.local.get('boxArtCache', function(JSONCachedBoxArtArray) { var storedBoxArtArray; // load cached data if it exists - if (JSONCachedBoxArtArray.boxArtCache != undefined) { + if (JSONCachedBoxArtArray.boxArtCache != undefined && JSONCachedBoxArtArray.boxArtCache[appId] != undefined) { storedBoxArtArray = JSONCachedBoxArtArray.boxArtCache; storedBoxArtArray[appId] = _base64ToArrayBuffer(storedBoxArtArray[appId]);