mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-31 01:55:29 +00:00 
			
		
		
		
	Fixed some build options for vite
This commit is contained in:
		
							
								
								
									
										14
									
								
								node_modules/unicorn-magic/default.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								node_modules/unicorn-magic/default.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| export async function delay({seconds, milliseconds} = {}) { | ||||
| 	let duration; | ||||
| 	if (typeof seconds === 'number') { | ||||
| 		duration = seconds * 1000; | ||||
| 	} else if (typeof milliseconds === 'number') { | ||||
| 		duration = milliseconds; | ||||
| 	} else { | ||||
| 		throw new TypeError('Expected an object with either `seconds` or `milliseconds`.'); | ||||
| 	} | ||||
|  | ||||
| 	return new Promise(resolve => { | ||||
| 		setTimeout(resolve, duration); | ||||
| 	}); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens