From 90ee07fd981ab0814abded622a711fbd1e95f70c Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Sat, 16 Mar 2024 22:43:04 +0700 Subject: [PATCH] emoteCloner: fix cloning gif stickers (#2268) --- src/plugins/emoteCloner/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/emoteCloner/index.tsx b/src/plugins/emoteCloner/index.tsx index b25e1be2..4c0fe94a 100644 --- a/src/plugins/emoteCloner/index.tsx +++ b/src/plugins/emoteCloner/index.tsx @@ -56,7 +56,7 @@ function getUrl(data: Data) { if (data.t === "Emoji") return `${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${data.id}.${data.isAnimated ? "gif" : "png"}`; - return `${location.origin}/stickers/${data.id}.${StickerExt[data.format_type]}`; + return `${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}`; } async function fetchSticker(id: string) {