From 7c3b247d84c01882830e754e0e2995c36e4a2a33 Mon Sep 17 00:00:00 2001 From: V Date: Sat, 25 Nov 2023 02:43:29 +0100 Subject: [PATCH] fix WebContextMenus --- src/plugins/webContextMenus.web/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index aa575bfd..cf50bb86 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -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" } },