Skip to content

Commit

Permalink
ReverseImageSearch: Fix duplicate find
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Jun 21, 2024
1 parent e5a2f7a commit c14afb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/reverseImageSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default definePlugin({

patches: [
{
find: ".Messages.MESSAGE_ACTIONS_MENU_LABEL",
find: ".Messages.MESSAGE_ACTIONS_MENU_LABEL,shouldHideMediaOptions",
replacement: {
match: /favoriteableType:\i,(?<=(\i)\.getAttribute\("data-type"\).+?)/,
replace: (m, target) => `${m}reverseImageSearchType:${target}.getAttribute("data-role"),`
Expand Down

0 comments on commit c14afb0

Please sign in to comment.