electron/spec/fixtures/api/native-window-open-file.html
2017-04-30 18:54:08 +09:00

12 lines
332 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
const {ipcRenderer} = require("electron");
const popup = window.open('native-window-open-child.html');
popup.onload = () => {
const content = popup.document.querySelector('h1').innerText;
ipcRenderer.send('answer', content);
};
</script>
</body>
</html>