Skip to content

Commit

Permalink
Add comments to patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jedenastka committed Feb 6, 2024
1 parent 86162b3 commit 54c9564
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/textEmoji/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ export default definePlugin({
description: "Prevents Discord from replacing emoji with images, leaving it up to the browser to render them",
authors: [Devs.Grzesiek11],
patches: [
// Reactions
{
find: "getSrc(){",
replacement: {
match: /(if\(null!=\i\))return \i\.default\.getURL\(\i\)/,
replace: "$1return null",
},
},
// Messages
{
find: ",findInlineEmojisFromSurrogates:",
replacement: {
Expand Down

0 comments on commit 54c9564

Please sign in to comment.