diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-04-14 21:47:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 02:47:03 +0200 |
commit | 96f640da674e89824881070c4081b7aee212e619 (patch) | |
tree | 9d8dbdf97313c79410c8d1a2b380116d2b7d3a86 /src/plugins/settings.tsx | |
parent | e8809fc57bd1c679e9a84ae6adc949655e3a86ec (diff) | |
download | Vencord-96f640da674e89824881070c4081b7aee212e619.tar.gz Vencord-96f640da674e89824881070c4081b7aee212e619.tar.bz2 Vencord-96f640da674e89824881070c4081b7aee212e619.zip |
Make Context Menu API support hooks (#902)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/settings.tsx')
-rw-r--r-- | src/plugins/settings.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/settings.tsx b/src/plugins/settings.tsx index 74d0496..5dec83c 100644 --- a/src/plugins/settings.tsx +++ b/src/plugins/settings.tsx @@ -41,7 +41,7 @@ export default definePlugin({ // doesn't contain our sections. This patches the actions of our // sections to manually use SettingsRouter (which only works on desktop // but the context menu is usually not available on mobile anyway) - addContextMenuPatch("user-settings-cog", children => { + addContextMenuPatch("user-settings-cog", children => () => { const section = children.find(c => Array.isArray(c) && c.some(it => it?.props?.id === "VencordSettings")) as any; section?.forEach(c => { if (c?.props?.id?.startsWith("Vencord")) { |