Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit 1a4a4e6

Browse files
SantaHeykongomongo
authored andcommitted
Update horizontalGrid with downloadPromises
Adapted from #117
1 parent 1371cff commit 1a4a4e6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/js/Search.jsx

+5-7
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,14 @@ class Search extends React.Component {
7070
items: clonedItems,
7171
});
7272

73-
//Add horizontalGrid BPM image for Non-Steam Games
74-
if (game.appidold && location.state.assetType == 'horizontalGrid') {
75-
Steam.addAsset(location.state.assetType, game.appidold, item.url);
76-
}
77-
7873
const downloadPromises = [];
7974

8075
downloadPromises.push(Steam.addAsset(location.state.assetType, game.appid, item.url));
81-
// Old app id is for Big Picture Mode
82-
downloadPromises.push(Steam.addAsset(location.state.assetType, game.appidOld, item.url));
76+
77+
// Add horizontalGrid BPM image for Non-Steam Games
78+
if (game.appidold && location.state.assetType == 'horizontalGrid') {
79+
downloadPromises.push(Steam.addAsset(location.state.assetType, game.appidold, item.url));
80+
}
8381

8482
Promise.all(downloadPromises).then(() => {
8583
clonedItems[itemIndex].downloading = false;

0 commit comments

Comments
 (0)