Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Jul 31, 2024
1 parent e5269a2 commit 738182e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default [
find: "isCopiedStreakGodlike",
replacements: [
{
match: /this\.renderNameZone\(\),\(0,.\.\w+\)\(.+?\.\w+,{grow:0,children:\[/,
replace: (suffix: string) =>
`${suffix}replugged.plugins.getExports("dev.tharki.FakeDeafen")?._addPanelButton?.()??null,`,
match: /className:\w+\.buttons,children:\[/,
replace: (prefix: string) =>
`${prefix}replugged.plugins.getExports("dev.tharki.FakeDeafen")?._addPanelButton?.(),`,
},
],
},
Expand All @@ -16,8 +16,8 @@ export default [
replacements: [
{
match: /null==\w+\?void 0:\w+\.selfDeaf/,
replace: (suffix: string) =>
`${suffix}&&replugged.webpack.getByStoreName("MediaEngineStore")?.isDeaf?.()`,
replace: (prefix: string) =>
`${prefix}&&replugged.webpack.getByStoreName("MediaEngineStore")?.isDeaf?.()`,
},
],
},
Expand Down

0 comments on commit 738182e

Please sign in to comment.