|
|
|
@ -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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|