diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-12-31 22:46:39 -0500 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-12-31 22:46:39 -0500 |
| commit | 335d38e12b9b1781fe7002cff4e676ea7a592ecc (patch) | |
| tree | 7f84e7c94998f7c6b7e80a710ac169f90b2acc49 /frontend/src/menu-hook.tsx | |
| parent | d762860eac1d2ee0d12fc84879b2097d368d6159 (diff) | |
| download | decky-loader-335d38e12b9b1781fe7002cff4e676ea7a592ecc.tar.gz decky-loader-335d38e12b9b1781fe7002cff4e676ea7a592ecc.zip | |
add * option for route in itempatches
Diffstat (limited to 'frontend/src/menu-hook.tsx')
| -rw-r--r-- | frontend/src/menu-hook.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend/src/menu-hook.tsx b/frontend/src/menu-hook.tsx index 5a3ffde5..347084e4 100644 --- a/frontend/src/menu-hook.tsx +++ b/frontend/src/menu-hook.tsx @@ -137,7 +137,14 @@ class MenuHook extends Logger { const oType = itemList[index].type; itemList[index] = patch({ ...cloneElement(itemList[index]), - type: (props) => createElement(oType, props), + type: (props: any) => createElement(oType, props), + }); + }); + itemPatches.get('*')?.forEach((patch) => { + const oType = itemList[index].type; + itemList[index] = patch({ + ...cloneElement(itemList[index]), + type: (props: any) => createElement(oType, props), }); }); } |
