mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	Fix files_dropped in HTML5 export.
(Ignore trailing slash when creating the temporary directory)
(cherry picked from commit 40f26cb260)
			
			
This commit is contained in:
		
							parent
							
								
									229489f7b7
								
							
						
					
					
						commit
						e00d20aa5a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -262,7 +262,7 @@ const GodotInputDragDrop = {
 | 
				
			||||||
				const DROP = `/tmp/drop-${parseInt(Math.random() * (1 << 30), 10)}/`;
 | 
									const DROP = `/tmp/drop-${parseInt(Math.random() * (1 << 30), 10)}/`;
 | 
				
			||||||
				const drops = [];
 | 
									const drops = [];
 | 
				
			||||||
				const files = [];
 | 
									const files = [];
 | 
				
			||||||
				FS.mkdir(DROP);
 | 
									FS.mkdir(DROP.slice(0, -1)); // Without trailing slash
 | 
				
			||||||
				GodotInputDragDrop.pending_files.forEach((elem) => {
 | 
									GodotInputDragDrop.pending_files.forEach((elem) => {
 | 
				
			||||||
					const path = elem['path'];
 | 
										const path = elem['path'];
 | 
				
			||||||
					GodotFS.copy_to_fs(DROP + path, elem['data']);
 | 
										GodotFS.copy_to_fs(DROP + path, elem['data']);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue