diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-13 03:46:46 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-13 03:46:46 +0100 |
commit | 9110d1f9bde60b92df548551d60dc2b004e7afc3 (patch) | |
tree | b78566acee5bfa91af4c66eba7b6ed91866b414d /src/plugins/reverseImageSearch.tsx | |
parent | 81edc1407071c6c0328f40a1ee487ea0388b9a7e (diff) | |
download | Vencord-9110d1f9bde60b92df548551d60dc2b004e7afc3.tar.gz Vencord-9110d1f9bde60b92df548551d60dc2b004e7afc3.tar.bz2 Vencord-9110d1f9bde60b92df548551d60dc2b004e7afc3.zip |
Emote Clone plugin
Diffstat (limited to 'src/plugins/reverseImageSearch.tsx')
-rw-r--r-- | src/plugins/reverseImageSearch.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/reverseImageSearch.tsx b/src/plugins/reverseImageSearch.tsx index cbe72d8..2d66636 100644 --- a/src/plugins/reverseImageSearch.tsx +++ b/src/plugins/reverseImageSearch.tsx @@ -56,7 +56,7 @@ export default definePlugin({ }], makeMenu(src: string, target: HTMLElement) { - if (target && target.attributes["data-role"]?.value !== "img") + if (target && !(target instanceof HTMLImageElement) && target.attributes["data-role"]?.value !== "img") return null; return ( |