Skip to content

Commit

Permalink
fix: menu hook and menu item hook patches (#1548)
Browse files Browse the repository at this point in the history
* Patch part of Menu hook

* Patch Menu Item hook! ISSUE RESOLVED
  • Loading branch information
CharlieS1103 authored Mar 26, 2022
1 parent 91d5486 commit eb3adee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocess/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb3adee

Please sign in to comment.