ReverseImageSearch: Fix duplicate find

This commit is contained in:
Nuckyz 2024-06-21 03:59:38 -03:00
parent a43d5d595a
commit cac0398276
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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"),`