diff --git a/static/js/index.js b/static/js/index.js index 0960edc..188f814 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -447,9 +447,8 @@ function showApps(host) { appList.forEach(function (app) { host.getBoxArt(app.id).then(function (resolvedPromise) { - let app_selector = $('#game-' + app.id); // put the box art into the image holder - if (app_selector.length === 0) { + if ($('#game-' + app.id).length === 0) { // double clicking the button will cause multiple box arts to appear. // to mitigate this we ensure we don't add a duplicate. // This isn't perfect: there's lots of RTTs before the logic prevents anything @@ -473,10 +472,10 @@ function showApps(host) { // $("#gameList").append($("