ContextMenuApi: fix
This commit is contained in:
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]);$&"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user