emoteCloner: fix cloning gif stickers (#2268)
This commit is contained in:
parent
356d8d8e5e
commit
90ee07fd98
|
@ -56,7 +56,7 @@ function getUrl(data: Data) {
|
||||||
if (data.t === "Emoji")
|
if (data.t === "Emoji")
|
||||||
return `${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${data.id}.${data.isAnimated ? "gif" : "png"}`;
|
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) {
|
async function fetchSticker(id: string) {
|
||||||
|
|
Loading…
Reference in a new issue