Skip to content

Commit 40ca5d6

Browse files
committed
fix(2d): audio file not loaded when the file path contains a #
#1184
1 parent 72cba52 commit 40ca5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/match/viewer-2d/audio/load-audio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export async function loadAudio(audioFilePath: string) {
77
audio.addEventListener('loadedmetadata', () => {
88
resolve(audio);
99
});
10-
audio.src = `file://${audioFilePath}`;
10+
audio.src = `file://${audioFilePath.replaceAll('#', '%23')}`;
1111
});
1212
}

0 commit comments

Comments
 (0)