electron/spec/fixtures/pages/window-opener-no-node-integration.html

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

16 lines
410 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
var windowUrl = decodeURIComponent(window.location.search.substring(3))
var opened = window.open('file://' + windowUrl, '', 'nodeIntegration=yes,show=no')
window.addEventListener('message', function (event) {
try {
2016-04-01 23:52:55 +00:00
opened.close()
} finally {
2016-04-01 23:52:55 +00:00
window.opener.postMessage(event.data, '*')
}
2016-04-01 23:52:55 +00:00
})
</script>
</body>
</html>