Skip to content

Commit

Permalink
Merge pull request #2 from headshot2017/main
Browse files Browse the repository at this point in the history
don't add empty sfx name to validUrls
  • Loading branch information
stonedDiscord authored Nov 22, 2023
2 parents 732eda8 + 9a0f81c commit 9d95f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const getCharacterUrls = async () => {
for (const value in charIni[key]) {
const sfx = charIni[key][value];
const sfxUrl = `${BASE_SOUNDS_URL}` + "general/" + sfx + ".opus";
if (sfx != null && sfx != "0" && sfx != "1" && !validUrls.find((existing) => existing == sfxUrl))
if (sfx != null && sfx.length > 1 && !validUrls.find((existing) => existing == sfxUrl))
validUrls.push(sfxUrl);
}
}
Expand Down

0 comments on commit 9d95f04

Please sign in to comment.