diff options
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 ( |