mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
FixImageQuality: fix embed images
This commit is contained in:
parent
ce8e48bb6d
commit
2d51b7cc40
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ export default definePlugin({
|
|||
if (!contentType?.startsWith("image/") || src.startsWith("data:")) return;
|
||||
|
||||
const url = new URL(src);
|
||||
if (!url.pathname.startsWith("/attachments/")) return;
|
||||
|
||||
url.searchParams.set("animated", String(!freeze));
|
||||
|
||||
if (!settings.store.originalImagesInChat && mediaLayoutType === "MOSAIC") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue