ping-pong.html 225 B

123456789101112
  1. <html>
  2. <body>
  3. <script type="text/javascript" charset="utf-8">
  4. const {ipcRenderer} = require('electron')
  5. ipcRenderer.on('ping', function (event, id) {
  6. ipcRenderer.sendTo(id, 'pong', id)
  7. })
  8. </script>
  9. </body>
  10. </html>