remote-event-handler.html 403 B

12345678910111213141516171819
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <script>
  7. const {remote} = require('electron')
  8. const browserWindow = remote.getCurrentWindow()
  9. const handler = () => {}
  10. browserWindow.webContents.on('remote-handler', handler)
  11. browserWindow.webContents.on('other-remote-handler', handler)
  12. </script>
  13. </head>
  14. <body>
  15. </body>
  16. </html>