Fix broken patches

This commit is contained in:
Nuckyz 2023-11-24 16:49:19 -03:00
parent fdddfdb05b
commit 3e8e106be7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
3 changed files with 22 additions and 35 deletions

View file

@ -120,9 +120,9 @@ export default definePlugin({
find: 'navId:"image-context"',
predicate: () => settings.store.addBack,
replacement: {
// return IS_DESKTOP ? React.createElement(Menu, ...)
match: /return \i\.\i\?/,
replace: "return true?"
// return IS_DESKTOP && null != ... ? React.createElement(Menu, ...)
match: /return \i\.\i(?=&&null)/,
replace: "return true"
}
},