aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2023-03-24 03:42:38 +0100
committerGitHub <noreply@github.com>2023-03-24 03:42:38 +0100
commit8d8cedd72cf8eebd456dd0ea4d78ed022cb133e8 (patch)
tree81d6bfb31e5390081e3cd9f2a0ac1af8b963070f /src/api
parent082ac62edaa9eabf56b6e84e0b06bae64dc9844c (diff)
downloadVencord-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.ts2
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 {