From 96f640da674e89824881070c4081b7aee212e619 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 14 Apr 2023 21:47:03 -0300 Subject: Make Context Menu API support hooks (#902) Co-authored-by: V --- src/plugins/reverseImageSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/reverseImageSearch.tsx') diff --git a/src/plugins/reverseImageSearch.tsx b/src/plugins/reverseImageSearch.tsx index 74b2619..deaa280 100644 --- a/src/plugins/reverseImageSearch.tsx +++ b/src/plugins/reverseImageSearch.tsx @@ -34,7 +34,7 @@ function search(src: string, engine: string) { open(engine + encodeURIComponent(src), "_blank"); } -const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => { +const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => () => { if (!props) return; const { reverseImageSearchType, itemHref, itemSrc } = props; -- cgit