fix WebContextMenus

This commit is contained in:
V 2023-11-25 02:43:29 +01:00
parent 68fca78541
commit 7c3b247d84
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

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