ContextMenuApi: fix

This commit is contained in:
Vendicated 2023-10-25 15:07:45 +02:00 committed by V
parent 322ecc5e88
commit 44c9675795

@ -29,8 +29,8 @@ export default definePlugin({
{
find: "♫ (つ。◕‿‿◕。)つ ♪",
replacement: {
match: /(?<=function \i\((\i)\){)(?=var \i,\i=\i\.navId)/,
replace: (_, props) => `Vencord.Api.ContextMenu._patchContextMenu(${props});`
match: /let{navId:/,
replace: "Vencord.Api.ContextMenu._patchContextMenu(arguments[0]);$&"
}
},
{