Also add Emote Cloner to Emote picker rightclick menu (#664)

This commit is contained in:
Ven 2023-03-24 03:42:38 +01:00 committed by GitHub
parent 082ac62eda
commit 8d8cedd72c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 51 deletions

View file

@ -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 {