electron/spec/fixtures/pages/ping-pong.html

13 lines
334 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
ipcRenderer.on('ping', function (event, payload) {
ipcRenderer.sendTo(event.senderId, 'pong', payload)
})
ipcRenderer.on('ping-æøåü', function (event, payload) {
ipcRenderer.sendTo(event.senderId, 'pong-æøåü', payload)
})
</script>
</body>
</html>