electron/spec/fixtures/api/native-window-open-file.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
327 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
2017-04-30 10:43:21 +00:00
const {ipcRenderer} = require('electron')
const popup = window.open('native-window-open-child.html')
popup.onload = () => {
2017-04-30 10:43:21 +00:00
const content = popup.document.querySelector('h1').innerText
ipcRenderer.send('answer', content)
}
</script>
</body>
</html>