From eb3adee9fe37d13d53bfc20c14ac58c5f0205763 Mon Sep 17 00:00:00 2001 From: CharlieS1103 <60494758+CharlieS1103@users.noreply.github.com> Date: Sat, 26 Mar 2022 16:14:14 -0400 Subject: [PATCH] fix: menu hook and menu item hook patches (#1548) * Patch part of Menu hook * Patch Menu Item hook! ISSUE RESOLVED --- src/preprocess/preprocess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess/preprocess.go b/src/preprocess/preprocess.go index 63f2d447fc..d5cc2acb01 100644 --- a/src/preprocess/preprocess.go +++ b/src/preprocess/preprocess.go @@ -341,7 +341,7 @@ Spicetify.React.useEffect(() => { // React Component: Context Menu - Menu Item utils.Replace( &input, - `=\w+=>\{let\{children:\w+,icon:\w+`, + `=(?:\w+=>|function)(?:\{let|\(\w+\)\{var \w+,\w+=\w+.children,\w+=\w+.icon)(?:\{children:\w+,icon:\w+)?`, `=Spicetify.ReactComponent.MenuItem${0}`) // React Component: Album Context Menu items