fix WebContextMenus

main
V 12 months ago
parent 68fca78541
commit 7c3b247d84
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

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

Loading…
Cancel
Save