| 
									
										
										
										
											2019-06-04 11:25:51 +02:00
										 |  |  | import open from 'opn'; | 
					
						
							| 
									
										
										
										
											2018-05-22 13:29:49 +02:00
										 |  |  | import { ChildProcess } from 'child_process'; | 
					
						
							| 
									
										
										
										
											2017-03-12 21:20:43 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-22 13:29:49 +02:00
										 |  |  | export let openUrl = async urlArg => { | 
					
						
							| 
									
										
										
										
											2019-04-16 08:26:16 +02:00
										 |  |  |   if (!(process.env.CI === 'true')) { | 
					
						
							| 
									
										
										
										
											2018-05-22 13:42:21 +02:00
										 |  |  |     const childProcess = await open(urlArg, { | 
					
						
							|  |  |  |       wait: false | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |     return childProcess; | 
					
						
							|  |  |  |   } else { | 
					
						
							| 
									
										
										
										
											2019-04-16 08:26:16 +02:00
										 |  |  |     return null; | 
					
						
							| 
									
										
										
										
											2018-05-22 13:42:21 +02:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-05-22 13:29:49 +02:00
										 |  |  | }; |