Skip to content

Commit 4b9c27d

Browse files
NuckyzVendicated
authored andcommitted
ViewIcons: fix profile avatars
1 parent aa8d348 commit 4b9c27d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/plugins/viewIcons/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ export default definePlugin({
201201
{
202202
find: "return{avatarProps:{",
203203
replacement: {
204-
match: /(?<=avatarProps:(\i),eventHandlers:(\i).{0,100}?)return null==/,
205-
replace: 'Object.assign($2,{style:{cursor:"pointer"},onClick:()=>$self.openAvatar($1.src)});$&',
204+
match: /(?<=avatarProps:(\i),eventHandlers:\i.{0,100}?)return null==(?<=onOpenAvatar:(\i).+?)/,
205+
replace: "$2&&=$self.openAvatar.bind(undefined,$1.src);$&",
206206
}
207207
},
208208
// Banners

0 commit comments

Comments
 (0)