Fix paths for sound selection

This commit is contained in:
2026-04-17 11:09:41 +02:00
parent bda52e4390
commit 6f97b37cfd
+1 -1
View File
@@ -1013,7 +1013,7 @@ function openItemPropertyOptionSelect(item: WorldItem, key: string): void {
/** Fetches the list of widget sounds from the server. Returns [] on error. */ /** Fetches the list of widget sounds from the server. Returns [] on error. */
async function fetchWidgetSounds(): Promise<string[]> { async function fetchWidgetSounds(): Promise<string[]> {
try { try {
const response = await fetch('/sounds_list.php'); const response = await fetch(withBase('sounds_list.php'));
if (!response.ok) return []; if (!response.ok) return [];
const names = (await response.json()) as string[]; const names = (await response.json()) as string[];
if (!Array.isArray(names)) return []; if (!Array.isArray(names)) return [];