aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reverseImageSearch.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-19 04:53:00 -0300
committerGitHub <noreply@github.com>2023-03-19 04:53:00 -0300
commit0fb79b763d797d70d2eb6d847b0bf711c9927337 (patch)
treeb95674e930baa1a9b3651185e990b46acd82f871 /src/plugins/reverseImageSearch.tsx
parent5873bde6a62857f92f3fb3d756914cc1efd0ec25 (diff)
downloadVencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.tar.gz
Vencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.tar.bz2
Vencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.zip
Improvements, changes and fixes (#611)
Diffstat (limited to 'src/plugins/reverseImageSearch.tsx')
-rw-r--r--src/plugins/reverseImageSearch.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/reverseImageSearch.tsx b/src/plugins/reverseImageSearch.tsx
index 47954ba..88c0b16 100644
--- a/src/plugins/reverseImageSearch.tsx
+++ b/src/plugins/reverseImageSearch.tsx
@@ -34,9 +34,9 @@ function search(src: string, engine: string) {
open(engine + encodeURIComponent(src), "_blank");
}
-const imageContextMenuPatch: NavContextMenuPatchCallback = (children, args) => {
- if (!args?.[0]) return;
- const { reverseImageSearchType, itemHref, itemSrc } = args[0];
+const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => {
+ if (!props) return;
+ const { reverseImageSearchType, itemHref, itemSrc } = props;
if (!reverseImageSearchType || reverseImageSearchType !== "img") return;