Assert remote event names

This commit is contained in:
Kevin Sawicki 2017-01-12 16:31:02 -08:00
parent b04db2e546
commit 45986405b8
4 changed files with 28 additions and 9 deletions

View file

@ -7,8 +7,9 @@
const {remote} = require('electron')
const browserWindow = remote.getCurrentWindow()
browserWindow.webContents.on('remote-handler', () => { })
browserWindow.reload()
const handler = () => {}
browserWindow.webContents.on('remote-handler', handler)
browserWindow.webContents.on('other-remote-handler', handler)
</script>
</head>
<body>