mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	(Refactor) Use for...of
This commit is contained in:
		
							parent
							
								
									fffbef8e45
								
							
						
					
					
						commit
						661abcfcdb
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -122,8 +122,7 @@
 | 
			
		|||
		this.onpaste = e => {
 | 
			
		||||
			const data = e.clipboardData;
 | 
			
		||||
			const items = data.items;
 | 
			
		||||
			for (let i = 0; i < items.length; i++) {
 | 
			
		||||
				const item = items[i];
 | 
			
		||||
			for (item of items) {
 | 
			
		||||
				if (item.kind == 'file') {
 | 
			
		||||
					this.upload(item.getAsFile());
 | 
			
		||||
				}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue