ViewIcon: Replace regex find with string find
This commit is contained in:
		
							parent
							
								
									cddc811c02
								
							
						
					
					
						commit
						c5e554e48c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -221,7 +221,7 @@ export default definePlugin({ | |||
|         }, | ||||
|         // User DMs top small icon
 | ||||
|         { | ||||
|             find: /HiddenVisually,{children:\i\.\i\.Messages\.DIRECT_MESSAGE/, | ||||
|             find: ".cursorPointer:null,children", | ||||
|             replacement: { | ||||
|                 match: /.Avatar,.+?src:(.+?\))(?=[,}])/, | ||||
|                 replace: (m, avatarUrl) => `${m},onClick:()=>$self.openImage(${avatarUrl})` | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue