Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
attempt fix patcher?!
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Apr 25, 2024
1 parent 43272f2 commit 77f06e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/suncordplugins/messageLoggerEnhanced/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,15 @@ export default definePlugin({

// https://regex101.com/r/TMV1vY/1
{
find: ".removeAttachmentHoverButton",
find: ".removeMosaicItemHoverButton",
replacement: {
match: /(\i=(\i)=>{)(.{1,250}isSingleMosaicItem)/,
replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3"
}
},

{
find: "handleImageLoad=",
find: "handleImageLoad)",
replacement: {
match: /(render\(\){)(.{1,100}zoomThumbnailPlaceholder)/,
replace: "$1$self.checkImage(this);$2"
Expand Down

0 comments on commit 77f06e3

Please sign in to comment.