diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx index 36b283e1..c22eebdc 100644 --- a/src/plugins/emoteCloner.tsx +++ b/src/plugins/emoteCloner.tsx @@ -50,7 +50,7 @@ function getGuildCandidates(isAnimated: boolean) { } async function doClone(guildId: string, id: string, name: string, isAnimated: boolean) { - const data = await fetch(`https://cdn.discordapp.com/emojis/${id}.${isAnimated ? "gif" : "png"}`) + const data = await fetch(`${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${id}.${isAnimated ? "gif" : "png"}`) .then(r => r.blob()); const reader = new FileReader(); @@ -226,7 +226,7 @@ export default definePlugin({