fix WebContextMenus
This commit is contained in:
parent
68fca78541
commit
7c3b247d84
1 changed files with 3 additions and 2 deletions
|
@ -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…
Reference in a new issue