feat: preferLargeMedia config

This commit is contained in:
2023-12-14 12:05:26 +00:00
parent 6e5fba4f15
commit 9e65024652
5 changed files with 20 additions and 11 deletions

View File

@ -15,7 +15,7 @@ export const ProxyImg = forwardRef<HTMLImageElement, ProxyImgProps>(
({ size, className, promptToLoadDirectly, missingImageElement, sha256, ...props }: ProxyImgProps, ref) => {
const { proxy } = useImgProxy();
const [loadFailed, setLoadFailed] = useState(false);
const [bypass, setBypass] = useState(CONFIG.bypassImgProxyError);
const [bypass, setBypass] = useState(CONFIG.media.bypassImgProxyError);
if (loadFailed && !bypass && (promptToLoadDirectly ?? true)) {
return (