Skip to content

Commit 2ec2d21

Browse files
committed
Renamig
1 parent 5ff1298 commit 2ec2d21

File tree

5 files changed

+2
-860
lines changed

5 files changed

+2
-860
lines changed
File renamed without changes.
File renamed without changes.

script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ async function loadPlatforms() {
6969
if (contents) {
7070
const platformImg = contents.find(f => f.name === 'platform.png');
7171
if (platformImg) {
72-
platformData.image = `${folder.name}/platform.png`;
72+
// Use the download_url from GitHub API
73+
platformData.image = platformImg.download_url || `${folder.name}/platform.png`;
7374
}
7475

7576
// Count items recursively

0 commit comments

Comments
 (0)