Skip to content

Commit 3f8b766

Browse files
authored
Merge branch 'main' into native-api
2 parents ae1caee + 01a09ab commit 3f8b766

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/renderer/coremods/badges/plaintextPatches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default [
1212
},
1313
// Change to a div and add a children for our custom badge
1414
{
15-
match: /"img",({.+?\((\w+)\.icon\),)/,
15+
match: /"img",(.{20,50}?\((\w+)\.icon\),)/,
1616
replace: `$2.component?"div":"img",$1children:$2.component,`,
1717
},
1818
],

src/renderer/coremods/notrack/plaintextPatches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default [
55
find: "AnalyticsActionHandlers.handleTrack",
66
replacements: [
77
{
8-
match: /=>\w+\.AnalyticsActionHandlers\.handle\w+\([^)]*\)/g,
9-
replace: "=>{}",
8+
match: /(\(\)|\w+)=>\w+\.AnalyticsActionHandlers\.handle\w+\([^)]*\)/g,
9+
replace: "arg=>{arg?.resolve?.()}",
1010
},
1111
],
1212
},

0 commit comments

Comments
 (0)