mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 a3662091c7
			
		
	
	a3662091c7
	
	
	
		
			
			* Add an intermediate pending state for widget messages * Remove unnecessary setTimeout * Rename method
		
			
				
	
	
		
			11 lines
		
	
	
		
			272 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			272 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const getUuid = () =>
 | |
|   'xxxxxxxx4xxx'.replace(/[xy]/g, c => {
 | |
|     // eslint-disable-next-line
 | |
|     const r = (Math.random() * 16) | 0;
 | |
|     // eslint-disable-next-line
 | |
|     const v = c === 'x' ? r : (r & 0x3) | 0x8;
 | |
|     return v.toString(16);
 | |
|   });
 | |
| 
 | |
| export default getUuid;
 |