chore: update stuff
This commit is contained in:
parent
29d7d29288
commit
0e7937efd7
1 changed files with 6 additions and 0 deletions
|
|
@ -54,6 +54,12 @@ async function loadMusicData() {
|
|||
|
||||
const data = await response.json();
|
||||
|
||||
// Safety check to prevent crashes
|
||||
if (!data || !data.ols) {
|
||||
console.error("Music JSON is invalid or blocked by CORS:", data);
|
||||
return [];
|
||||
}
|
||||
|
||||
const section = data.ols.find(item => item["@id"] === "frutigerAeroBliss");
|
||||
if (!section) return [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue