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: "♫ (つ。◕‿‿◕。)つ ♪", find: "♫ (つ。◕‿‿◕。)つ ♪",
replacement: { replacement: {
match: /(?<=function \i\((\i)\){)(?=var \i,\i=\i\.navId)/, match: /let{navId:/,
replace: (_, props) => `Vencord.Api.ContextMenu._patchContextMenu(${props});` replace: "Vencord.Api.ContextMenu._patchContextMenu(arguments[0]);$&"
} }
}, },
{ {