chore: update stuff
This commit is contained in:
parent
ee454cca8d
commit
17abae2fe2
1 changed files with 10 additions and 4 deletions
|
|
@ -12,11 +12,17 @@ function fisherYatesShuffle(songs) {
|
|||
return songs;
|
||||
}
|
||||
|
||||
// Load the JSON file containing music data (using CORS proxy)
|
||||
// Load the JSON file containing music data directly from chat.veltron.net
|
||||
async function loadMusicData() {
|
||||
const corsProxyUrl = 'https://corsproxy.io/?url=';
|
||||
const targetUrl = 'https://chat.veltron.net';
|
||||
const response = await fetch(corsProxyUrl + encodeURIComponent(targetUrl));
|
||||
const targetUrl = 'https://chat.veltron.net'; // Directly use the target URL
|
||||
const response = await fetch(targetUrl);
|
||||
|
||||
// Check if the request was successful
|
||||
if (!response.ok) {
|
||||
console.error("Failed to fetch music data:", response.statusText);
|
||||
return [];
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
// Get the "frutigerAeroBliss" section from the JSON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue