mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
Some General Fixes
This commit is contained in:
parent
872f67c19e
commit
537afc71be
6 changed files with 54 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue