| 
									
										
										
										
											2020-08-27 07:31:51 -07:00
										 |  |  | const informationBtn = document.getElementById('information-dialog') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-29 21:52:16 +02:00
										 |  |  | informationBtn.addEventListener('click', async () => { | 
					
						
							|  |  |  |   const index = await window.electronAPI.openInformationDialog() | 
					
						
							|  |  |  |   const message = `You selected: ${index === 0 ? 'yes' : 'no'}` | 
					
						
							| 
									
										
										
										
											2020-08-27 07:31:51 -07:00
										 |  |  |   document.getElementById('info-selection').innerHTML = message | 
					
						
							|  |  |  | }) |