Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lilkidsuave authored Feb 13, 2024
1 parent 6b82193 commit 3ce3869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ for (const file of servapps) {
const alternativeIconPath = `https://lilkidsuave.github.io/asteroidsinthecosmos/servapps/${file}/logo`;

if (fs.existsSync(`./servapps/${file}/logo`)) {
const pngFiles = fs.readdirSync(`./servapps/${file}/logo`).filter(file => file.toLowerCase().endsWith('.png'));
const pngFiles = fs.readdirSync(`./servapps/${file}/logo`);
if (pngFiles.length > 0) {
alternativeIconSource = `${alternativeIconPath}/${pngFiles[0]}`;
}
Expand Down

0 comments on commit 3ce3869

Please sign in to comment.