Skip to content

Commit

Permalink
Merge branch 'rdtComponentSourceFix' of https://github.com/yofukashin…
Browse files Browse the repository at this point in the history
…o/replugged into rdtComponentSourceFix
  • Loading branch information
yofukashino committed Jan 24, 2025
2 parents e8a1e5c + c61a11f commit 3d5145a
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 3d5145a

Please sign in to comment.