aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reverseImageSearch.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-04-14 21:47:03 -0300
committerGitHub <noreply@github.com>2023-04-15 02:47:03 +0200
commit96f640da674e89824881070c4081b7aee212e619 (patch)
tree9d8dbdf97313c79410c8d1a2b380116d2b7d3a86 /src/plugins/reverseImageSearch.tsx
parente8809fc57bd1c679e9a84ae6adc949655e3a86ec (diff)
downloadVencord-96f640da674e89824881070c4081b7aee212e619.tar.gz
Vencord-96f640da674e89824881070c4081b7aee212e619.tar.bz2
Vencord-96f640da674e89824881070c4081b7aee212e619.zip
Make Context Menu API support hooks (#902)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/reverseImageSearch.tsx')
-rw-r--r--src/plugins/reverseImageSearch.tsx2
1 files changed, 1 insertions, 1 deletions
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;