Skip to content

Commit

Permalink
Merge branch 'components-fix' of https://github.com/yofukashino/replu…
Browse files Browse the repository at this point in the history
…gged into components-fix
  • Loading branch information
yofukashino committed Jan 29, 2025
2 parents 9685761 + d176177 commit 5dc6a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/coremods/badges/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default [
},
// Change to a div and add a children for our custom badge
{
match: /"img",({.+?\((\w+)\.icon\),)/,
match: /"img",(.{20,50}?\((\w+)\.icon\),)/,
replace: `$2.component?"div":"img",$1children:$2.component,`,
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/coremods/notrack/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default [
find: "AnalyticsActionHandlers.handleTrack",
replacements: [
{
match: /=>\w+\.AnalyticsActionHandlers\.handle\w+\([^)]*\)/g,
replace: "=>{}",
match: /(\(\)|\w+)=>\w+\.AnalyticsActionHandlers\.handle\w+\([^)]*\)/g,
replace: "arg=>{arg?.resolve?.()}",
},
],
},
Expand Down

0 comments on commit 5dc6a77

Please sign in to comment.