mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-12 08:03:06 -04:00
This commit is contained in:
parent
3d1c654c20
commit
5db0cea8c3
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ async function addListeners(audioElement: HTMLAudioElement, url: string, parentB
|
|||
const madeURL = new URL(url);
|
||||
madeURL.searchParams.set("t", Date.now().toString());
|
||||
|
||||
const corsProxyUrl = "https://corsproxy.io?" + encodeURIComponent(madeURL.href);
|
||||
const corsProxyUrl = "https://corsproxy.io/?url=" + encodeURIComponent(madeURL.href);
|
||||
const response = await fetch(corsProxyUrl);
|
||||
const blob = await response.blob();
|
||||
const blobUrl = URL.createObjectURL(blob);
|
||||
|
|
|
@ -14,7 +14,7 @@ import { FFmpegState } from "./types";
|
|||
export const cl = classNameFactory("vc-more-stickers-");
|
||||
export const clPicker = (className: string, ...args: any[]) => cl("picker-" + className, ...args);
|
||||
|
||||
const CORS_PROXY = "https://corsproxy.io?";
|
||||
const CORS_PROXY = "https://corsproxy.io/?url=";
|
||||
|
||||
function corsUrl(url: string | URL) {
|
||||
return CORS_PROXY + encodeURIComponent(url.toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue