14 lines
335 B
HTML
14 lines
335 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
const {ipcRenderer} = require('electron')
|
|
ipcRenderer.on('ping', function (event, id) {
|
|
ipcRenderer.sendTo(id, 'pong', id)
|
|
})
|
|
ipcRenderer.on('ping-æøåü', function (event, id) {
|
|
ipcRenderer.sendTo(id, 'pong-æøåü', id)
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|