2017-04-30 18:53:31 +09:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2017-05-24 11:30:25 -07:00
|
|
|
const {ipcRenderer} = window.top != null ? window.top.require('electron') : require('electron')
|
2017-04-30 19:43:21 +09:00
|
|
|
const popup = window.open()
|
|
|
|
popup.document.write('<h1>Hello</h1>')
|
|
|
|
const content = popup.document.querySelector('h1').innerText
|
|
|
|
ipcRenderer.send('answer', content)
|
2017-04-30 18:53:31 +09:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|