Skip to content

Commit

Permalink
fix checkAsciiFilenames on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakaIsBaka committed Jun 15, 2024
1 parent 5632500 commit 206d112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/_lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ const checkKeysound = async (folder, charts) => {
};

const checkAsciiFilenames = (folder) => {
const folderName = folder[0].directoryHandle.name
let isFileApiSupported = folder[0].directoryHandle !== undefined;
const folderName = isFileApiSupported ? folder[0].directoryHandle.name : folder[0].webkitRelativePath.split('/', 1)[0]
if (!isAscii(folderName)) {
const issue = new Issue(IssueType.NonAsciiFilename, folderName, "");
issues.push(issue);
Expand Down

0 comments on commit 206d112

Please sign in to comment.