Some General Fixes

This commit is contained in:
thororen1234 2025-01-09 07:19:41 -05:00
parent 872f67c19e
commit 537afc71be
6 changed files with 54 additions and 19 deletions

View file

@ -66,8 +66,7 @@ async function addListeners(audioElement: HTMLAudioElement, url: string, parentB
const madeURL = new URL(url);
madeURL.searchParams.set("t", Date.now().toString());
// thanks thororen :p
const corsProxyUrl = "https://cors.thororen.com/?url=" + encodeURIComponent(madeURL.href);
const corsProxyUrl = "https://corsproxy.io?" + encodeURIComponent(madeURL.href);
const response = await fetch(corsProxyUrl);
const blob = await response.blob();
const blobUrl = URL.createObjectURL(blob);