Skip to content

Commit 3243120

Browse files
committed
Reapply "MessagePopoverAPI: Fix buttons not appearing"
Actually applying the fix this time
1 parent 4ab297c commit 3243120

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugins/_api/messagePopover.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export default definePlugin({
2727
{
2828
find: "#{intl::MESSAGE_UTILITIES_A11Y_LABEL}",
2929
replacement: {
30-
match: /(?<=:null),(.{0,40}togglePopout:.+?}\))\]}\):null,(?<=\((\i\.\i),{label:.+?:null,(\i&&!\i)\?\(0,\i\.jsxs?\)\(\i\.Fragment.+?message:(\i).+?)/,
31-
replace: (_, ReactButton, ButtonComponent, showReactButton, message) => "" +
32-
`]}):null,Vencord.Api.MessagePopover._buildPopoverElements(${ButtonComponent},${message}),${showReactButton}?${ReactButton}:null,`
30+
match: /(?<=:null),(.{0,40}togglePopout:.+?}\)),(.+?)\]}\):null,(?<=\((\i\.\i),{label:.+?:null,(\i&&!\i)\?\(0,\i\.jsxs?\)\(\i\.Fragment.+?message:(\i).+?)/,
31+
replace: (_, ReactButton, PotionButton, ButtonComponent, showReactButton, message) => "" +
32+
`]}):null,Vencord.Api.MessagePopover._buildPopoverElements(${ButtonComponent},${message}),${showReactButton}?${ReactButton}:null,${showReactButton}&&${PotionButton},`
3333
}
3434
}
3535
]

0 commit comments

Comments
 (0)