This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,11 @@
// Metro module 12270 (f12271).
import { Endpoints } from "../../../Constants";
import { getBestMediaProxySize, getDevicePixelRatio } from "../../image_upload/ImageLoaderUtils";
export default function getGuildEventImageURL(a0, a1) {
if (a0.image == null) {
return null;
}
const bestMediaProxySize = getBestMediaProxySize(a1 == null ? window.screen.width * getDevicePixelRatio() : a1);
const CDN_HOST = window.GLOBAL_ENV.CDN_HOST;
return (CDN_HOST != null ? `https://${CDN_HOST}/guild-events/${a0.id}/${a0.image}` : location.protocol + window.GLOBAL_ENV.API_ENDPOINT + Endpoints.GUILD_EVENT_IMAGE(a0.id, a0.image, "png")) + `?size=${bestMediaProxySize}`;
};