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
|
// 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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue