| 
									
										
										
										
											2017-04-30 18:53:31 +09:00
										 |  |  | <html> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  | <script type="text/javascript" charset="utf-8"> | 
					
						
							| 
									
										
										
										
											2017-04-30 19:43:21 +09:00
										 |  |  |   const {ipcRenderer} = require('electron') | 
					
						
							|  |  |  |   const popup = window.open('native-window-open-child.html') | 
					
						
							| 
									
										
										
										
											2017-04-30 18:53:31 +09:00
										 |  |  |   popup.onload = () => { | 
					
						
							| 
									
										
										
										
											2017-04-30 19:43:21 +09:00
										 |  |  |     const content = popup.document.querySelector('h1').innerText | 
					
						
							|  |  |  |     ipcRenderer.send('answer', content) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2017-04-30 18:53:31 +09:00
										 |  |  | </script> | 
					
						
							|  |  |  | </body> | 
					
						
							|  |  |  | </html> |