fix occasional errors in Dearrow & ImageZoom

This commit is contained in:
Vendicated 2024-05-28 02:35:40 +02:00
parent c2f8837602
commit 5b35d7c644
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 9 additions and 5 deletions

View file

@ -182,8 +182,8 @@ export default definePlugin({
// add dearrow button
{
match: /children:\[(?=null!=\i\?\i\.renderSuppressButton)/,
replace: "children:[$self.renderButton(this),",
match: /children:\[(?=null!=\i\?(\i)\.renderSuppressButton)/,
replace: "children:[$self.renderButton($1),",
predicate: () => !settings.store.hideButton
}
]