diff options
author | Ven <vendicated@riseup.net> | 2023-03-24 03:42:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 03:42:38 +0100 |
commit | 8d8cedd72cf8eebd456dd0ea4d78ed022cb133e8 (patch) | |
tree | 81d6bfb31e5390081e3cd9f2a0ac1af8b963070f /src/api | |
parent | 082ac62edaa9eabf56b6e84e0b06bae64dc9844c (diff) | |
download | Vencord-8d8cedd72cf8eebd456dd0ea4d78ed022cb133e8.tar.gz Vencord-8d8cedd72cf8eebd456dd0ea4d78ed022cb133e8.tar.bz2 Vencord-8d8cedd72cf8eebd456dd0ea4d78ed022cb133e8.zip |
Also add Emote Cloner to Emote picker rightclick menu (#664)
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/ContextMenu.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/ContextMenu.ts b/src/api/ContextMenu.ts index 3f73a41..16f9f32 100644 --- a/src/api/ContextMenu.ts +++ b/src/api/ContextMenu.ts @@ -122,6 +122,8 @@ export function _patchContextMenu(props: ContextMenuProps) { props.contextMenuApiArguments ??= []; const contextMenuPatches = navPatches.get(props.navId); + if (!Array.isArray(props.children)) props.children = [props.children]; + if (contextMenuPatches) { for (const patch of contextMenuPatches) { try { |