From 634fe252d698f42bec1db1bbf49fec98c35344f7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 7 May 2017 15:56:10 -0700 Subject: [PATCH] Fix exception when failing to retrieve box art --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index b380639..0da35d7 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -440,7 +440,7 @@ function showApps(host) { // 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 - var outerDiv = $("
", {class: 'game-container mdl-card mdl-shadow--4dp', id: 'game-'+app.id, backgroundImage: URL.createObjectURL(imageBlob) }); + var outerDiv = $("
", {class: 'game-container mdl-card mdl-shadow--4dp', id: 'game-'+app.id, backgroundImage: "static/res/no_app_image.png" }); $(outerDiv).append($("", {src: "static/res/no_app_image.png", id: 'game-'+app.id, name: app.title })); $(outerDiv).append($("
", {class: "game-title", html: $("", {html: app.title} )})); $("#game-grid").append(outerDiv);