mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 22:23:02 -04:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
01261d2a1e
1 changed files with 8 additions and 1 deletions
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue