Skip to content

Commit

Permalink
Fix: use decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaah committed Jul 20, 2024
1 parent 4d87560 commit 492998f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ export const createApi = async (
units.map((unit) => ({
...unit,
files: unit.files.map(
(file) => `${musicLibraryPath}${decodeURI(new URL(file).pathname)}`,
(file) =>
`${musicLibraryPath}${decodeURIComponent(new URL(file).pathname)}`,
),
})),
);
Expand Down

0 comments on commit 492998f

Please sign in to comment.