mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	✌️
This commit is contained in:
		
							parent
							
								
									2810fbd3a0
								
							
						
					
					
						commit
						df43de0487
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,11 @@ const migrate = doc => new Promise(async (res, rej) => {
 | 
			
		|||
		.setFormat('ppm')
 | 
			
		||||
		.resize(1, 1)
 | 
			
		||||
		.toBuffer(async (err, buffer) => {
 | 
			
		||||
			if (err) rej(err);
 | 
			
		||||
			if (err) {
 | 
			
		||||
				console.error(err);
 | 
			
		||||
				res(false);
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
			const r = buffer.readUInt8(buffer.length - 3);
 | 
			
		||||
			const g = buffer.readUInt8(buffer.length - 2);
 | 
			
		||||
			const b = buffer.readUInt8(buffer.length - 1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue