DynamicImageModalAPI: Include new image modal too

This commit is contained in:
Nuckyz 2025-02-28 19:54:05 -03:00
parent 11715da9e0
commit 0f384419d5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -14,11 +14,18 @@ export default definePlugin({
description: "Allows you to omit either width or height when opening an image modal", description: "Allows you to omit either width or height when opening an image modal",
patches: [ patches: [
{ {
find: "SCALE_DOWN:", find: ".contain,SCALE_DOWN:",
replacement: { replacement: {
match: /(?<="IMAGE"===\i\?)\i(?=\?)/, match: /(?<="IMAGE"===\i\?)\i(?=\?)/,
replace: "true" replace: "true"
} }
},
{
find: ".dimensionlessImage,",
replacement: {
match: /(?<="IMAGE"===\i&&\(\i=)\i(?=\?)/,
replace: "true"
}
} }
] ]
}); });