<html> <body> <script type="text/javascript" charset="utf-8"> const popup = window.open() require('electron').ipcRenderer.send('answer', typeof popup.process) </script> </body> </html>